function CKEditor5::__construct

Same name and namespace in other branches
  1. 11.x core/modules/ckeditor5/src/Plugin/Editor/CKEditor5.php \Drupal\ckeditor5\Plugin\Editor\CKEditor5::__construct()
  2. 10 core/modules/ckeditor5/src/Plugin/Editor/CKEditor5.php \Drupal\ckeditor5\Plugin\Editor\CKEditor5::__construct()
  3. 9 core/modules/ckeditor5/src/Plugin/Editor/CKEditor5.php \Drupal\ckeditor5\Plugin\Editor\CKEditor5::__construct()

Constructs a CKEditor 5 editor plugin.

Parameters

array $configuration: A configuration array containing information about the plugin instance.

string $plugin_id: The plugin ID for the plugin instance.

mixed $plugin_definition: The plugin implementation definition.

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

\Drupal\Core\Language\LanguageManagerInterface $languageManager: The language manager.

\Drupal\Core\Extension\ModuleHandlerInterface $moduleHandler: The module handler.

\Drupal\ckeditor5\SmartDefaultSettings $smartDefaultSettings: The smart default settings utility.

\Drupal\Core\Cache\CacheBackendInterface $cache: The cache.

\Psr\Log\LoggerInterface $logger: A logger instance.

\Drupal\ckeditor5\LanguageMapper $languageMapper: The ckeditor language mapper.

Overrides PluginBase::__construct

File

core/modules/ckeditor5/src/Plugin/Editor/CKEditor5.php, line 92

Class

CKEditor5
Defines a CKEditor 5-based text editor for Drupal.

Namespace

Drupal\ckeditor5\Plugin\Editor

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, protected CKEditor5PluginManagerInterface $ckeditor5PluginManager, protected LanguageManagerInterface $languageManager, protected ModuleHandlerInterface $moduleHandler, protected SmartDefaultSettings $smartDefaultSettings, #[Autowire(service: 'cache.default')] protected CacheBackendInterface $cache, #[Autowire(service: 'logger.channel.ckeditor5')] protected LoggerInterface $logger, protected LanguageMapper $languageMapper) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.