FormErrorHandlerInterface.php

Same filename in other branches
  1. 9 core/lib/Drupal/Core/Form/FormErrorHandlerInterface.php
  2. 8.9.x core/lib/Drupal/Core/Form/FormErrorHandlerInterface.php
  3. 10 core/lib/Drupal/Core/Form/FormErrorHandlerInterface.php

Namespace

Drupal\Core\Form

File

core/lib/Drupal/Core/Form/FormErrorHandlerInterface.php

View source
<?php

namespace Drupal\Core\Form;


/**
 * Provides an interface for handling form errors.
 */
interface FormErrorHandlerInterface {
    
    /**
     * Handles form errors after form 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.
     *
     * @return $this
     */
    public function handleFormErrors(array &$form, FormStateInterface $form_state);

}

Interfaces

Title Deprecated Summary
FormErrorHandlerInterface Provides an interface for handling form errors.

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