function FormStateDecoratorBase::setErrorByName
Same name in other branches
- 9 core/lib/Drupal/Core/Form/FormStateDecoratorBase.php \Drupal\Core\Form\FormStateDecoratorBase::setErrorByName()
- 10 core/lib/Drupal/Core/Form/FormStateDecoratorBase.php \Drupal\Core\Form\FormStateDecoratorBase::setErrorByName()
- 11.x core/lib/Drupal/Core/Form/FormStateDecoratorBase.php \Drupal\Core\Form\FormStateDecoratorBase::setErrorByName()
Overrides FormStateInterface::setErrorByName
1 call to FormStateDecoratorBase::setErrorByName()
- SubformState::setErrorByName in core/
lib/ Drupal/ Core/ Form/ SubformState.php - Files an error against a form element.
1 method overrides FormStateDecoratorBase::setErrorByName()
- SubformState::setErrorByName in core/
lib/ Drupal/ Core/ Form/ SubformState.php - Files an error against a form element.
File
-
core/
lib/ Drupal/ Core/ Form/ FormStateDecoratorBase.php, line 624
Class
- FormStateDecoratorBase
- Decorates another form state.
Namespace
Drupal\Core\FormCode
public function setErrorByName($name, $message = '') {
$this->decoratedFormState
->setErrorByName($name, $message);
return $this;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.