You are here

public function SubformState::getLimitValidationErrors in Markdown 8.2

Retrieves the limited validation error sections.

Return value

array|null The limited validation error sections.

Overrides FormStateDecoratorBase::getLimitValidationErrors

See also

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

File

src/BcSupport/SubformState.php, line 140

Class

SubformState
Stores information about the state of a subform.

Namespace

Drupal\markdown\BcSupport

Code

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