FormState::hasAnyErrors

public static FormState::hasAnyErrors()

Determines if any forms have any errors.

Return value

bool TRUE if any form has any errors, FALSE otherwise.

Overrides FormStateInterface::hasAnyErrors

File

core/lib/Drupal/Core/Form/FormState.php, line 1048

Class

FormState
Stores information about the state of a form.

Namespace

Drupal\Core\Form

Code

public static function hasAnyErrors() {
  return static::$anyErrors;
}
doc_Drupal
2016-10-29 09:15:59
Comments
Leave a Comment

Please login to continue.