function SmartDefaultSettings::__construct

Same name in other branches
  1. 9 core/modules/ckeditor5/src/SmartDefaultSettings.php \Drupal\ckeditor5\SmartDefaultSettings::__construct()
  2. 11.x core/modules/ckeditor5/src/SmartDefaultSettings.php \Drupal\ckeditor5\SmartDefaultSettings::__construct()

Constructs a SmartDefaultSettings object.

Parameters

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

\Drupal\Component\Plugin\PluginManagerInterface $upgrade_plugin_manager: The CKEditor 4 to 5 upgrade plugin manager.

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

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

\Drupal\Core\Session\AccountInterface $current_user: The current user.

File

core/modules/ckeditor5/src/SmartDefaultSettings.php, line 83

Class

SmartDefaultSettings
Generates CKEditor 5 settings for existing text editors/formats.

Namespace

Drupal\ckeditor5

Code

public function __construct(CKEditor5PluginManagerInterface $plugin_manager, PluginManagerInterface $upgrade_plugin_manager, LoggerInterface $logger, ModuleHandlerInterface $module_handler, AccountInterface $current_user) {
    $this->pluginManager = $plugin_manager;
    $this->upgradePluginManager = $upgrade_plugin_manager;
    $this->logger = $logger;
    $this->moduleHandler = $module_handler;
    $this->currentUser = $current_user;
}

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