public function SubFormState::getErrors in Authorization 8
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
- src/
Form/ SubFormState.php, line 381
Class
- SubFormState
- Represents the form state of a sub-form.
Namespace
Drupal\authorization\FormCode
public function getErrors() {
return $this->mainFormState
->getErrors();
}