function CssSelectorConstraint::__construct
Same name and namespace in other branches
- 11.x core/lib/Drupal/Core/Theme/Plugin/Validation/Constraint/CssSelectorConstraint.php \Drupal\Core\Theme\Plugin\Validation\Constraint\CssSelectorConstraint::__construct()
File
-
core/
lib/ Drupal/ Core/ Theme/ Plugin/ Validation/ Constraint/ CssSelectorConstraint.php, line 20
Class
- CssSelectorConstraint
- Checks if the string is a correct CSS selector.
Namespace
Drupal\Core\Theme\Plugin\Validation\ConstraintCode
public function __construct(public string $message = 'The CSS selector @scope is invalid.', ?array $groups = NULL, mixed $payload = NULL) {
parent::__construct(groups: $groups, payload: $payload);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.