You are here

public function FormStateInterface::getErrors in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Form/FormStateInterface.php \Drupal\Core\Form\FormStateInterface::getErrors()

Returns an associative array of all errors.

Return value

array An array of all errors, keyed by the name of the form element.

1 method overrides FormStateInterface::getErrors()
FormState::getErrors in core/lib/Drupal/Core/Form/FormState.php
Returns an associative array of all errors.

File

core/lib/Drupal/Core/Form/FormStateInterface.php, line 529
Contains \Drupal\Core\Form\FormStateInterface.

Class

FormStateInterface
Provides an interface for an object containing the current state of a form.

Namespace

Drupal\Core\Form

Code

public function getErrors();