public function FormInterface::validateForm in Drupal 8
Same name and namespace in other branches
- 9 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.
30 methods override FormInterface::validateForm()
- ActionsTest::validateForm in core/
tests/ Drupal/ KernelTests/ Core/ Render/ Element/ ActionsTest.php - Form validation handler.
- AjaxFormBlock::validateForm in core/
modules/ system/ tests/ modules/ ajax_forms_test/ src/ Plugin/ Block/ AjaxFormBlock.php - Form validation handler.
- AjaxTestMessageCommandForm::validateForm in core/
modules/ system/ tests/ modules/ ajax_test/ src/ Form/ AjaxTestMessageCommandForm.php - Form validation handler.
- BasicFormNoContainerInjectionInterface::validateForm in core/
tests/ Drupal/ Tests/ Core/ Entity/ EntityResolverManagerTest.php - Form validation handler.
- BlockListBuilder::validateForm in core/
modules/ block/ src/ BlockListBuilder.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);