function FormInterface::validateForm

Same name in other branches
  1. 9 core/lib/Drupal/Core/Form/FormInterface.php \Drupal\Core\Form\FormInterface::validateForm()
  2. 8.9.x core/lib/Drupal/Core/Form/FormInterface.php \Drupal\Core\Form\FormInterface::validateForm()
  3. 10 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.

34 methods override FormInterface::validateForm()
ActionsTest::validateForm in core/tests/Drupal/KernelTests/Core/Render/Element/ActionsTest.php
AjaxFormBlock::validateForm in core/modules/system/tests/modules/ajax_forms_test/src/Plugin/Block/AjaxFormBlock.php
Form validation handler.
AjaxTestFocusFirstForm::validateForm in core/modules/system/tests/modules/ajax_test/src/Form/AjaxTestFocusFirstForm.php
AjaxTestMessageCommandForm::validateForm in core/modules/system/tests/modules/ajax_test/src/Form/AjaxTestMessageCommandForm.php
BasicFormNoContainerInjectionInterface::validateForm in core/tests/Drupal/Tests/Core/Entity/EntityResolverManagerTest.php

... See full list

File

core/lib/Drupal/Core/Form/FormInterface.php, line 45

Class

FormInterface
Provides an interface for a Form.

Namespace

Drupal\Core\Form

Code

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.