public function FormElementMaxlengthTest::validateForm in Drupal 10
Same name and namespace in other branches
- 8 core/modules/system/tests/src/Kernel/Form/FormElementMaxlengthTest.php \Drupal\Tests\system\Kernel\Form\FormElementMaxlengthTest::validateForm()
- 9 core/modules/system/tests/src/Kernel/Form/FormElementMaxlengthTest.php \Drupal\Tests\system\Kernel\Form\FormElementMaxlengthTest::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/ FormElementMaxlengthTest.php, line 60
Class
- FormElementMaxlengthTest
- Tests the maxlength HTML attribute on form elements.
Namespace
Drupal\Tests\system\Kernel\FormCode
public function validateForm(array &$form, FormStateInterface $form_state) {
}