You are here

public function QuizFeedbackConditionsForm::validateForm in Quiz 8.6

Same name and namespace in other branches
  1. 8.5 src/Form/QuizFeedbackConditionsForm.php \Drupal\quiz\Form\QuizFeedbackConditionsForm::validateForm()
  2. 6.x src/Form/QuizFeedbackConditionsForm.php \Drupal\quiz\Form\QuizFeedbackConditionsForm::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

src/Form/QuizFeedbackConditionsForm.php, line 58

Class

QuizFeedbackConditionsForm
Rules condition form for feedback types.

Namespace

Drupal\quiz\Form

Code

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