Update form.php.twig

As per https://www.drupal.org/node/2310411

$foo = $form_state['values']['foo']; 

should now be

$foo = $form_state->getValue('foo');