function 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\Constraint

Code

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.