function UserLanguageTestForm::buildForm
Same name in other branches
- 11.x core/modules/user/tests/modules/user_language_test/src/Form/UserLanguageTestForm.php \Drupal\user_language_test\Form\UserLanguageTestForm::buildForm()
Overrides FormInterface::buildForm
File
-
core/
modules/ user/ tests/ modules/ user_language_test/ src/ Form/ UserLanguageTestForm.php, line 24
Class
- UserLanguageTestForm
- Provides a User Language Test form.
Namespace
Drupal\user_language_test\FormCode
public function buildForm(array $form, FormStateInterface $form_state) {
$form['#action'] = Url::fromRoute('user_language_test.post_response')->toString();
$form['actions'] = [
'#type' => 'actions',
'submit' => [
'#type' => 'submit',
'#value' => $this->t('Send'),
],
];
return $form;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.