public function SubformState::setLimitValidationErrors in Drupal 9
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/Form/SubformState.php \Drupal\Core\Form\SubformState::setLimitValidationErrors()
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
- core/
lib/ Drupal/ Core/ Form/ SubformState.php, line 122
Class
- SubformState
- Stores information about the state of a subform.
Namespace
Drupal\Core\FormCode
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);
}