class ToolbarItemConstraint
Same name and namespace in other branches
- 11.x core/modules/ckeditor5/src/Plugin/Validation/Constraint/ToolbarItemConstraint.php \Drupal\ckeditor5\Plugin\Validation\Constraint\ToolbarItemConstraint
- 10 core/modules/ckeditor5/src/Plugin/Validation/Constraint/ToolbarItemConstraint.php \Drupal\ckeditor5\Plugin\Validation\Constraint\ToolbarItemConstraint
- 9 core/modules/ckeditor5/src/Plugin/Validation/Constraint/ToolbarItemConstraint.php \Drupal\ckeditor5\Plugin\Validation\Constraint\ToolbarItemConstraint
A CKEditor 5 toolbar item.
Attributes
#[Constraint(id: 'CKEditor5ToolbarItem', label: new TranslatableMarkup('CKEditor 5 toolbar item', [], [
'context' => 'Validation',
]))]
Hierarchy
- class \Drupal\ckeditor5\Plugin\Validation\Constraint\ToolbarItemConstraint extends \Symfony\Component\Validator\Constraint
Expanded class hierarchy of ToolbarItemConstraint
See also
https://ckeditor.com/docs/ckeditor5/latest/features/toolbar/toolbar.html
File
-
core/
modules/ ckeditor5/ src/ Plugin/ Validation/ Constraint/ ToolbarItemConstraint.php, line 17
Namespace
Drupal\ckeditor5\Plugin\Validation\ConstraintView source
class ToolbarItemConstraint extends SymfonyConstraint {
public function __construct(mixed $options = NULL, public $message = 'The provided toolbar item %toolbar_item is not valid.', ?array $groups = NULL, mixed $payload = NULL) {
parent::__construct($options, $groups, $payload);
}
}
Members
| Title Sort descending | Modifiers | Object type | Summary |
|---|---|---|---|
| ToolbarItemConstraint::__construct | public | function | #[HasNamedArguments] |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.