function SmartDefaultSettings::__construct
Constructs a SmartDefaultSettings object.
Parameters
\Drupal\ckeditor5\Plugin\CKEditor5PluginManagerInterface $plugin_manager: The CKEditor 5 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 71
Class
- SmartDefaultSettings
- Generates CKEditor 5 settings for existing text editors/formats.
Namespace
Drupal\ckeditor5Code
public function __construct(CKEditor5PluginManagerInterface $plugin_manager, LoggerInterface $logger, ModuleHandlerInterface $module_handler, AccountInterface $current_user) {
$this->pluginManager = $plugin_manager;
$this->logger = $logger;
$this->moduleHandler = $module_handler;
$this->currentUser = $current_user;
}