class UniqueLabelInListConstraint
Same name in other branches
- 9 core/modules/ckeditor5/src/Plugin/Validation/Constraint/UniqueLabelInListConstraint.php \Drupal\ckeditor5\Plugin\Validation\Constraint\UniqueLabelInListConstraint
- 10 core/modules/ckeditor5/src/Plugin/Validation/Constraint/UniqueLabelInListConstraint.php \Drupal\ckeditor5\Plugin\Validation\Constraint\UniqueLabelInListConstraint
Uniquely labeled list item constraint.
@internal
Hierarchy
- class \Drupal\ckeditor5\Plugin\Validation\Constraint\UniqueLabelInListConstraint extends \Symfony\Component\Validator\Constraint
Expanded class hierarchy of UniqueLabelInListConstraint
File
-
core/
modules/ ckeditor5/ src/ Plugin/ Validation/ Constraint/ UniqueLabelInListConstraint.php, line 16
Namespace
Drupal\ckeditor5\Plugin\Validation\ConstraintView source
class UniqueLabelInListConstraint extends SymfonyConstraint {
/**
* The default violation message.
*
* @var string
*/
public $message = 'The label %label is not unique.';
/**
* The key of the label that this validation constraint should check.
*
* @var null|string
*/
public $labelKey = NULL;
/**
* {@inheritdoc}
*/
public function getRequiredOptions() : array {
return [
'labelKey',
];
}
}
Members
Title Sort descending | Modifiers | Object type | Summary |
---|---|---|---|
UniqueLabelInListConstraint::$labelKey | public | property | The key of the label that this validation constraint should check. |
UniqueLabelInListConstraint::$message | public | property | The default violation message. |
UniqueLabelInListConstraint::getRequiredOptions | public | function |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.