function Form::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/ router_test_directory/ src/ Form.php, line 38
Class
- Form
- Form to test _form routing.
Namespace
Drupal\router_testCode
public function submitForm(array &$form, FormStateInterface $form_state) : void {
$this->messenger()
->addStatus('The router_test_form form has been submitted successfully.');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.