You are here

public function PluginManagerDependentValidatorTrait::__construct in Drupal 10

Constructs a CKEditor5ConstraintValidatorTrait object.

Parameters

\Drupal\ckeditor5\Plugin\CKEditor5PluginManagerInterface $plugin_manager: The CKEditor 5 plugin manager.

File

core/modules/ckeditor5/src/Plugin/Validation/Constraint/PluginManagerDependentValidatorTrait.php, line 34

Class

PluginManagerDependentValidatorTrait
Common functionality for many CKEditor 5 validation constraints.

Namespace

Drupal\ckeditor5\Plugin\Validation\Constraint

Code

public function __construct(CKEditor5PluginManagerInterface $plugin_manager) {
  $this->pluginManager = $plugin_manager;
}