function FormErrorHandlerInterface::handleFormErrors

Same name in other branches
  1. 9 core/lib/Drupal/Core/Form/FormErrorHandlerInterface.php \Drupal\Core\Form\FormErrorHandlerInterface::handleFormErrors()
  2. 8.9.x core/lib/Drupal/Core/Form/FormErrorHandlerInterface.php \Drupal\Core\Form\FormErrorHandlerInterface::handleFormErrors()
  3. 11.x core/lib/Drupal/Core/Form/FormErrorHandlerInterface.php \Drupal\Core\Form\FormErrorHandlerInterface::handleFormErrors()

Handles form errors after form validation.

Parameters

array $form: An associative array containing the structure of the form.

\Drupal\Core\Form\FormStateInterface $form_state: The current state of the form.

Return value

$this

File

core/lib/Drupal/Core/Form/FormErrorHandlerInterface.php, line 20

Class

FormErrorHandlerInterface
Provides an interface for handling form errors.

Namespace

Drupal\Core\Form

Code

public function handleFormErrors(array &$form, FormStateInterface $form_state);

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.