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

1
2
3
public static function hasAnyErrors() {
  return static::$anyErrors;
}
doc_Drupal
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.