FormStateInterface::setValidationEnforced

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

1
public function setValidationEnforced($must_validate = TRUE);
doc_Drupal
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.