public function BuildDemo::validateForm in Examples for Developers 8
Same name and namespace in other branches
- 3.x modules/form_api_example/src/Form/BuildDemo.php \Drupal\form_api_example\Form\BuildDemo::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 FormBase::validateForm
File
- form_api_example/
src/ Form/ BuildDemo.php, line 117
Class
- BuildDemo
- Implements the build demo form controller.
Namespace
Drupal\form_api_example\FormCode
public function validateForm(array &$form, FormStateInterface $form_state) {
$this
->displayMethodInvocation('validateForm');
}