You are here

public function SubformState::setLimitValidationErrors in Markdown 8.2

Sets the limited validation error sections.

Parameters

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

Return value

$this

Overrides FormStateDecoratorBase::setLimitValidationErrors

See also

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

File

src/BcSupport/SubformState.php, line 129

Class

SubformState
Stores information about the state of a subform.

Namespace

Drupal\markdown\BcSupport

Code

public function setLimitValidationErrors($limit_validation_errors) {
  if (is_array($limit_validation_errors)) {
    $limit_validation_errors = array_merge($this
      ->getParents('#parents'), $limit_validation_errors);
  }
  return parent::setLimitValidationErrors($limit_validation_errors);
}