function FormStatePersistTest::validateForm

Same name and namespace in other branches
  1. 11.x core/modules/system/tests/src/Kernel/Form/FormStatePersistTest.php \Drupal\Tests\system\Kernel\Form\FormStatePersistTest::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/modules/system/tests/src/Kernel/Form/FormStatePersistTest.php, line 87

Class

FormStatePersistTest
Tests that the form state persists across multiple requests.

Namespace

Drupal\Tests\system\Kernel\Form

Code

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.