You are here

public function SettingsForm::validateForm in Rules 8.3

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

tests/modules/rules_test_ui_embed/src/Form/SettingsForm.php, line 79

Class

SettingsForm
Implements the settings form.

Namespace

Drupal\rules_test_ui_embed\Form

Code

public function validateForm(array &$form, FormStateInterface $form_state) {
  parent::validateForm($form, $form_state);
  $this->rulesUiHandler
    ->getForm()
    ->validateForm($form['conditions'], $form_state);
}