You are here

public function ContextFormBase::validateForm in Context 8

Same name and namespace in other branches
  1. 8.4 modules/context_ui/src/Form/ContextFormBase.php \Drupal\context_ui\Form\ContextFormBase::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

modules/context_ui/src/Form/ContextFormBase.php, line 107

Class

ContextFormBase

Namespace

Drupal\context_ui\Form

Code

public function validateForm(array &$form, FormStateInterface $form_state) {
  if ($form_state
    ->hasValue('reactions')) {
    $this
      ->validateReactions($form, $form_state);
  }
}