You are here

public function TestForm::validateForm in Drupal 8

Same name in this branch
  1. 8 core/tests/Drupal/Tests/Core/Form/FormBuilderTest.php \Drupal\Tests\Core\Form\TestForm::validateForm()
  2. 8 core/modules/block/tests/modules/block_test/src/Form/TestForm.php \Drupal\block_test\Form\TestForm::validateForm()
Same name and namespace in other branches
  1. 9 core/tests/Drupal/Tests/Core/Form/FormBuilderTest.php \Drupal\Tests\Core\Form\TestForm::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.

Overrides FormInterface::validateForm

File

core/tests/Drupal/Tests/Core/Form/FormBuilderTest.php, line 944
Contains \Drupal\Tests\Core\Form\FormBuilderTest.

Class

TestForm

Namespace

Drupal\Tests\Core\Form

Code

public function validateForm(array &$form, FormStateInterface $form_state) {
}