FormStateDecoratorBase::getErrors

public 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();
}
doc_Drupal
2016-10-29 09:16:16
Comments
Leave a Comment

Please login to continue.