protected static function FormState::setAnyErrors in Drupal 10
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/Form/FormState.php \Drupal\Core\Form\FormState::setAnyErrors()
- 9 core/lib/Drupal/Core/Form/FormState.php \Drupal\Core\Form\FormState::setAnyErrors()
Sets the global status of errors.
Parameters
bool $errors: TRUE if any form has any errors, FALSE otherwise.
File
- core/
lib/ Drupal/ Core/ Form/ FormState.php, line 1042
Class
- FormState
- Stores information about the state of a form.
Namespace
Drupal\Core\FormCode
protected static function setAnyErrors($errors = TRUE) {
static::$anyErrors = $errors;
}