You are here

public function FormStateDecoratorBase::isValidationEnforced in Drupal 10

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Form/FormStateDecoratorBase.php \Drupal\Core\Form\FormStateDecoratorBase::isValidationEnforced()
  2. 9 core/lib/Drupal/Core/Form/FormStateDecoratorBase.php \Drupal\Core\Form\FormStateDecoratorBase::isValidationEnforced()

Checks if validation is enforced.

Return value

bool If TRUE, validation will always be run.

Overrides FormStateInterface::isValidationEnforced

File

core/lib/Drupal/Core/Form/FormStateDecoratorBase.php, line 187

Class

FormStateDecoratorBase
Decorates another form state.

Namespace

Drupal\Core\Form

Code

public function isValidationEnforced() {
  return $this->decoratedFormState
    ->isValidationEnforced();
}