You are here

public function EntityQueueForm::validateForm in Entityqueue 8

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

src/Form/EntityQueueForm.php, line 377

Class

EntityQueueForm
Base form for entity queue edit forms.

Namespace

Drupal\entityqueue\Form

Code

public function validateForm(array &$form, FormStateInterface $form_state) {
  parent::validateForm($form, $form_state);
  $handler_plugin = $this
    ->getHandlerPlugin($this->entity, $form_state);
  $subform_state = SubformState::createForSubform($form['handler_settings_wrapper']['handler_settings'], $form, $form_state);
  $handler_plugin
    ->validateConfigurationForm($form['handler_settings_wrapper']['handler_settings'], $subform_state);
}