You are here

public function ActionFormBase::validateForm in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/action/src/Form/ActionFormBase.php \Drupal\action\Form\ActionFormBase::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

core/modules/action/src/Form/ActionFormBase.php, line 113

Class

ActionFormBase
Provides a base form for action forms.

Namespace

Drupal\action\Form

Code

public function validateForm(array &$form, FormStateInterface $form_state) {
  parent::validateForm($form, $form_state);
  if ($plugin = $this
    ->getPlugin()) {
    $plugin
      ->validateConfigurationForm($form, $form_state);
  }
}