ConfigExistsConstraint::$prefix
Same name in other branches
- 10 core/lib/Drupal/Core/Config/Plugin/Validation/Constraint/ConfigExistsConstraint.php \Drupal\Core\Config\Plugin\Validation\Constraint\ConfigExistsConstraint::prefix
Optional prefix, to be specified when this contains a config entity ID.
Every config entity type can have multiple instances, all with unique IDs but the same config prefix. When config refers to a config entity, typically only the ID is stored, not the prefix.
Type: string
File
-
core/
lib/ Drupal/ Core/ Config/ Plugin/ Validation/ Constraint/ ConfigExistsConstraint.php, line 36
Class
- ConfigExistsConstraint
- Checks that the value is the name of an existing config object.
Namespace
Drupal\Core\Config\Plugin\Validation\ConstraintCode
public string $prefix = '';
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.