You are here

public function FormState::setLimitValidationErrors in Drupal 9

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Form/FormState.php \Drupal\Core\Form\FormState::setLimitValidationErrors()

Sets the limited validation error sections.

Parameters

array|null $limit_validation_errors: The limited validation error sections.

Return value

$this

Overrides FormStateInterface::setLimitValidationErrors

See also

\Drupal\Core\Form\FormState::$limit_validation_errors

File

core/lib/Drupal/Core/Form/FormState.php, line 574

Class

FormState
Stores information about the state of a form.

Namespace

Drupal\Core\Form

Code

public function setLimitValidationErrors($limit_validation_errors) {
  $this->limit_validation_errors = $limit_validation_errors;
  return $this;
}