FormStateDecoratorBase::clearErrors

public FormStateDecoratorBase::clearErrors()

Clears all errors against all form elements made by self::setErrorByName().

Overrides FormStateInterface::clearErrors

File

core/lib/Drupal/Core/Form/FormStateDecoratorBase.php, line 642

Class

FormStateDecoratorBase
Decorates another form state.

Namespace

Drupal\Core\Form

Code

public function clearErrors() {
  $this->decoratedFormState->clearErrors();
}
doc_Drupal
2016-10-29 09:16:14
Comments
Leave a Comment

Please login to continue.