You are here

public function SubFormState::setValidationEnforced in Authorization 8

Enforces that validation is run.

Parameters

bool $must_validate: If TRUE, validation will always be run.

Return value

$this

Overrides FormStateInterface::setValidationEnforced

File

src/Form/SubFormState.php, line 604

Class

SubFormState
Represents the form state of a sub-form.

Namespace

Drupal\authorization\Form

Code

public function setValidationEnforced($must_validate = TRUE) {
  $this->mainFormState
    ->setValidationEnforced($must_validate);
  return $this;
}