function FormInterface::validateForm
Same name and namespace in other branches
- 11.x core/lib/Drupal/Core/Form/FormInterface.php \Drupal\Core\Form\FormInterface::validateForm()
Form validation 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.
6 methods override FormInterface::validateForm()
- AjaxTestFocusFirstForm::validateForm in core/
modules/ system/ tests/ modules/ ajax_test/ src/ Form/ AjaxTestFocusFirstForm.php - Form validation handler.
- DbLogFormInjectionTest::validateForm in core/
modules/ dblog/ tests/ src/ Kernel/ DbLogFormInjectionTest.php - Form validation handler.
- FileTestForm::validateForm in core/
modules/ file/ tests/ file_test/ src/ Form/ FileTestForm.php - Form validation handler.
- FormBase::validateForm in core/
lib/ Drupal/ Core/ Form/ FormBase.php - Form validation handler.
- ManagedFileTest::validateForm in core/
modules/ file/ tests/ src/ Kernel/ ManagedFileTest.php - Form validation handler.
File
-
core/
lib/ Drupal/ Core/ Form/ FormInterface.php, line 45
Class
- FormInterface
- Provides an interface for a Form.
Namespace
Drupal\Core\FormCode
public function validateForm(array &$form, FormStateInterface $form_state);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.