function UniqueLabelInListConstraint::__construct
Same name and namespace in other branches
- 11.x core/modules/ckeditor5/src/Plugin/Validation/Constraint/UniqueLabelInListConstraint.php \Drupal\ckeditor5\Plugin\Validation\Constraint\UniqueLabelInListConstraint::__construct()
Constructs a UniqueLabelInListConstraint object.
Parameters
string $labelKey: The key of the label that this validation constraint should check.
string $message: The error message.
array|null $groups: The groups that the constraint belongs to.
mixed|null $payload: Domain-specific data attached to a constraint.
File
-
core/
modules/ ckeditor5/ src/ Plugin/ Validation/ Constraint/ UniqueLabelInListConstraint.php, line 34
Class
- UniqueLabelInListConstraint
- Uniquely labeled list item constraint.
Namespace
Drupal\ckeditor5\Plugin\Validation\ConstraintCode
public function __construct(public string $labelKey, public $message = 'The label %label is not unique.', ?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.