Exemple #1
0
 /**
  * Finalizes validation.
  *
  * @param array $form
  *   An associative array containing the structure of the form.
  * @param \Drupal\Core\Form\FormStateInterface $form_state
  *   The current state of the form.
  * @param string $form_id
  *   The unique string identifying the form.
  */
 protected function finalizeValidation(&$form, FormStateInterface &$form_state, $form_id)
 {
     // Delegate handling of form errors to a service.
     $this->formErrorHandler->handleFormErrors($form, $form_state);
     // Mark this form as validated.
     $form_state->setValidationComplete();
 }