FormState::setAnyErrors

protected static FormState::setAnyErrors($errors = TRUE)

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 1041

Class

FormState
Stores information about the state of a form.

Namespace

Drupal\Core\Form

Code

protected static function setAnyErrors($errors = TRUE) {
  static::$anyErrors = $errors;
}
doc_Drupal
2016-10-29 09:16:02
Comments
Leave a Comment

Please login to continue.