function public static function FormBase::validateForm

8.x-3.x FormBase.php public static FormBase::validateForm(array &$form, FormStateInterface $form_state)

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

Class

FormBase
Base form alter class.

Namespace

Drupal\bootstrap\Plugin\Form

Source src/Plugin/Form/FormBase.php (line 43)

public static function validateForm(array &$form, FormStateInterface $form_state) {
  static::validateFormElement(Element::create($form), $form_state);
}