You are here

class ToolbarItemConstraint in Drupal 10

A CKEditor 5 toolbar item.

Plugin annotation


@Constraint(
  id = "CKEditor5ToolbarItem",
  label = @Translation("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 19

Namespace

Drupal\ckeditor5\Plugin\Validation\Constraint
View source
class ToolbarItemConstraint extends Constraint {

  /**
   * The default violation message.
   *
   * @var string
   */
  public $message = 'The provided toolbar item %toolbar_item is not valid.';

}

Members

Namesort descending Modifiers Type Description Overrides
ToolbarItemConstraint::$message public property The default violation message.