public function SubFormState::clearErrors in Authorization 8
Clears all errors against all form elements made by self::setErrorByName().
Overrides FormStateInterface::clearErrors
File
- src/
Form/ SubFormState.php, line 374
Class
- SubFormState
- Represents the form state of a sub-form.
Namespace
Drupal\authorization\FormCode
public function clearErrors() {
$this->mainFormState
->clearErrors();
}