You are here

public function FormStateDecoratorBase::setLimitValidationErrors in Drupal 8

Same name and namespace in other branches
  1. 9 core/lib/Drupal/Core/Form/FormStateDecoratorBase.php \Drupal\Core\Form\FormStateDecoratorBase::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

1 call to FormStateDecoratorBase::setLimitValidationErrors()
SubformState::setLimitValidationErrors in core/lib/Drupal/Core/Form/SubformState.php
Sets the limited validation error sections.
1 method overrides FormStateDecoratorBase::setLimitValidationErrors()
SubformState::setLimitValidationErrors in core/lib/Drupal/Core/Form/SubformState.php
Sets the limited validation error sections.

File

core/lib/Drupal/Core/Form/FormStateDecoratorBase.php, line 137

Class

FormStateDecoratorBase
Decorates another form state.

Namespace

Drupal\Core\Form

Code

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