function FormStateInterface::setValidationEnforced

Same name in other branches
  1. 9 core/lib/Drupal/Core/Form/FormStateInterface.php \Drupal\Core\Form\FormStateInterface::setValidationEnforced()
  2. 8.9.x core/lib/Drupal/Core/Form/FormStateInterface.php \Drupal\Core\Form\FormStateInterface::setValidationEnforced()
  3. 10 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

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.