function ConfigExistsConstraint::__construct
Same name and namespace in other branches
- main core/lib/Drupal/Core/Config/Plugin/Validation/Constraint/ConfigExistsConstraint.php \Drupal\Core\Config\Plugin\Validation\Constraint\ConfigExistsConstraint::__construct()
Attributes
#[HasNamedArguments]
File
-
core/
lib/ Drupal/ Core/ Config/ Plugin/ Validation/ Constraint/ ConfigExistsConstraint.php, line 32
Class
- ConfigExistsConstraint
- Checks that the value is the name of an existing config object.
Namespace
Drupal\Core\Config\Plugin\Validation\ConstraintCode
public function __construct(mixed $options = NULL, ?string $prefix = NULL, public string $message = "The '@name' config does not exist.", ?array $groups = NULL, mixed $payload = NULL) {
parent::__construct($options, $groups, $payload);
$this->prefix = $prefix ?? $this->prefix;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.