3 namespace Drupal\Core\Form;
6 * Provides an interface for handling form errors.
8 interface FormErrorHandlerInterface {
11 * Handles form errors after form validation.
14 * An associative array containing the structure of the form.
15 * @param \Drupal\Core\Form\FormStateInterface $form_state
16 * The current state of the form.
20 public function handleFormErrors(array &$form, FormStateInterface $form_state);