public function ClientsideValidationDemoForm::submitForm in Clientside Validation 8
Same name and namespace in other branches
- 8.2 clientside_validation_demo/src/Form/ClientsideValidationDemoForm.php \Drupal\clientside_validation_demo\Form\ClientsideValidationDemoForm::submitForm()
- 3.0.x clientside_validation_demo/src/Form/ClientsideValidationDemoForm.php \Drupal\clientside_validation_demo\Form\ClientsideValidationDemoForm::submitForm()
- 2.0.x clientside_validation_demo/src/Form/ClientsideValidationDemoForm.php \Drupal\clientside_validation_demo\Form\ClientsideValidationDemoForm::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
- clientside_validation_demo/
src/ Form/ ClientsideValidationDemoForm.php, line 174
Class
- ClientsideValidationDemoForm
- Class ClientsideValidationDemoForm.
Namespace
Drupal\clientside_validation_demo\FormCode
public function submitForm(array &$form, FormStateInterface $form_state) {
$this
->messenger()
->addStatus($this
->t('All form validations passed.'));
}