function 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();
}

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