Same name and namespace in other branches
  1. 8.9.x core/lib/Drupal/Core/Form/FormStateInterface.php \Drupal\Core\Form\FormStateInterface::setValidationEnforced()
  2. 9 core/lib/Drupal/Core/Form/FormStateInterface.php \Drupal\Core\Form\FormStateInterface::setValidationEnforced()

Enforces that validation is run.

Parameters

bool $must_validate: If TRUE, validation will always be run.

Return value

$this

1 method overrides FormStateInterface::setValidationEnforced()
FormStateDecoratorBase::setValidationEnforced in core/lib/Drupal/Core/Form/FormStateDecoratorBase.php
Enforces that validation is run.

File

core/lib/Drupal/Core/Form/FormStateInterface.php, line 846

Class

FormStateInterface
Provides an interface for an object containing the current state of a form.

Namespace

Drupal\Core\Form

Code

public function setValidationEnforced($must_validate = TRUE);