You are here

public static function CKEditor5::create in Drupal 10

File

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

Class

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

Namespace

Drupal\ckeditor5\Plugin\Editor

Code

public static function create(ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition) {
  return new static($configuration, $plugin_id, $plugin_definition, $container
    ->get('plugin.manager.ckeditor5.plugin'), $container
    ->get('language_manager'), $container
    ->get('module_handler'), $container
    ->get('ckeditor5.smart_default_settings'), $container
    ->get('cache.default'), $container
    ->get('ckeditor5.stylesheets.message'), $container
    ->get('logger.channel.ckeditor5'));
}