Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. SmartDefaultSettings.php

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\ckeditor5

Code

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;
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal