public function SubFormState::setLimitValidationErrors in Authorization 8
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
- src/
Form/ SubFormState.php, line 546
Class
- SubFormState
- Represents the form state of a sub-form.
Namespace
Drupal\authorization\FormCode
public function setLimitValidationErrors($limit_validation_errors) {
$add_subkeys = function (array $path) {
return array_merge($this->subKeys, $path);
};
$limit_validation_errors = array_map($add_subkeys, $limit_validation_errors);
$this->mainFormState
->setLimitValidationErrors($limit_validation_errors);
return $this;
}