class FundamentalCompatibilityConstraintValidator extends ConstraintValidator implements ContainerInjectionInterface (View source)

internal  
 

Validates fundamental compatibility of CKEditor 5 with the given text format.

Fundamental requirements:

  1. No TYPE_MARKUP_LANGUAGE filters allowed.
  2. Fundamental CKEditor 5 plugins' HTML tags are allowed.
  3. The HTML restrictions of all TYPE_HTML_RESTRICTOR filters allow the configured CKEditor 5 plugins to work.

Traits

Common functionality for many CKEditor 5 validation constraints.

Some CKEditor 5 constraint validators need a Text Editor object.

Constants

FUNDAMENTAL_CKEDITOR5_PLUGINS

The fundamental CKEditor 5 plugins without which it cannot function.

Properties

protected CKEditor5PluginManagerInterface $pluginManager

The CKEditor 5 plugin manager.

from  PluginManagerDependentValidatorTrait

Methods

__construct(CKEditor5PluginManagerInterface $plugin_manager)

Constructs a CKEditor5ConstraintValidatorTrait object.

static 
create(ContainerInterface $container)

{@inheritdoc}

validate($toolbar_item, Constraint $constraint)

{@inheritdoc}

Details

__construct(CKEditor5PluginManagerInterface $plugin_manager)

Constructs a CKEditor5ConstraintValidatorTrait object.

Parameters

CKEditor5PluginManagerInterface $plugin_manager

The CKEditor 5 plugin manager.

static create(ContainerInterface $container)

{@inheritdoc}

Parameters

ContainerInterface $container

validate($toolbar_item, Constraint $constraint)

{@inheritdoc}

Parameters

$toolbar_item
Constraint $constraint

Exceptions

UnexpectedTypeException