function 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\FormCode
public function setValidationEnforced($must_validate = TRUE);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.