8.4.x FormStateInterface.php public FormStateInterface::setValidationEnforced($must_validate = TRUE)
8.0.x FormStateInterface.php public FormStateInterface::setValidationEnforced($must_validate = TRUE)
8.1.x FormStateInterface.php public FormStateInterface::setValidationEnforced($must_validate = TRUE)
8.2.x FormStateInterface.php public FormStateInterface::setValidationEnforced($must_validate = TRUE)
8.3.x FormStateInterface.php public FormStateInterface::setValidationEnforced($must_validate = TRUE)
8.5.x FormStateInterface.php FormStateInterface::setValidationEnforced($must_validate = TRUE)

Enforces that validation is run.

Parameters

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

Return value

$this

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

File

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

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);