public FormStateInterface::setValidationEnforced($must_validate = TRUE)
Enforces that validation is run.
Parameters
bool $must_validate: If TRUE, validation will always be run.
Return value
$this
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);
Please login to continue.