You are here

public function FormStateDecoratorBase::getErrors in Drupal 8

Same name and namespace in other branches
  1. 9 core/lib/Drupal/Core/Form/FormStateDecoratorBase.php \Drupal\Core\Form\FormStateDecoratorBase::getErrors()
  2. 10 core/lib/Drupal/Core/Form/FormStateDecoratorBase.php \Drupal\Core\Form\FormStateDecoratorBase::getErrors()

Returns an associative array of all errors.

Return value

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

Overrides FormStateInterface::getErrors

File

core/lib/Drupal/Core/Form/FormStateDecoratorBase.php, line 656

Class

FormStateDecoratorBase
Decorates another form state.

Namespace

Drupal\Core\Form

Code

public function getErrors() {
  return $this->decoratedFormState
    ->getErrors();
}