You are here

public function ActionFormBase::validateForm in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/action/src/ActionFormBase.php \Drupal\action\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/ActionFormBase.php, line 126
Contains \Drupal\action\ActionFormBase.

Class

ActionFormBase
Provides a base form for action forms.

Namespace

Drupal\action

Code

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