You are here

public function FormStateInterface::setValidationEnforced in Drupal 8

Same name and namespace in other branches
  1. 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

2 methods override FormStateInterface::setValidationEnforced()
FormState::setValidationEnforced in core/lib/Drupal/Core/Form/FormState.php
Enforces that validation is run.
FormStateDecoratorBase::setValidationEnforced in core/lib/Drupal/Core/Form/FormStateDecoratorBase.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);