You are here

public function FormErrorHandlerInterface::handleFormErrors in Drupal 8

Same name and namespace in other branches
  1. 9 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

1 method overrides FormErrorHandlerInterface::handleFormErrors()
FormErrorHandler::handleFormErrors in core/lib/Drupal/Core/Form/FormErrorHandler.php
Handles form errors after form validation.

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);