public function FormStateDecoratorBase::getErrors in Drupal 8
Same name and namespace in other branches
- 9 core/lib/Drupal/Core/Form/FormStateDecoratorBase.php \Drupal\Core\Form\FormStateDecoratorBase::getErrors()
- 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\FormCode
public function getErrors() {
return $this->decoratedFormState
->getErrors();
}