Version 1
[yaffs-website] / web / core / lib / Drupal / Core / Form / FormErrorHandlerInterface.php
1 <?php
2
3 namespace Drupal\Core\Form;
4
5 /**
6  * Provides an interface for handling form errors.
7  */
8 interface FormErrorHandlerInterface {
9
10   /**
11    * Handles form errors after form validation.
12    *
13    * @param array $form
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.
17    *
18    * @return $this
19    */
20   public function handleFormErrors(array &$form, FormStateInterface $form_state);
21
22 }