function TestForm::submitForm
Form submission handler.
Parameters
array $form: An associative array containing the structure of the form.
\Drupal\Core\Form\FormStateInterface $form_state: The current state of the form.
Overrides FormInterface::submitForm
File
-
core/
modules/ system/ tests/ modules/ test_page_test/ src/ Form/ TestForm.php, line 105
Class
- TestForm
- Defines a test form for testing assertions.
Namespace
Drupal\test_page_test\FormCode
public function submitForm(array &$form, FormStateInterface $form_state) {
// Empty on purpose, we just want to test the rendered form elements.
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.