public function GutenbergLibraryManager::__construct in Gutenberg 8.2
Constructs a new GutenbergManager object.
Parameters
\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler.
\Drupal\Core\Extension\ThemeHandlerInterface $theme_handler: The theme handler.
\Drupal\Core\Theme\ThemeInitializationInterface $theme_initialization: The theme initialization.
\Drupal\Core\Cache\CacheBackendInterface $cache_backend: Cache backend instance to use.
\Psr\Log\LoggerInterface $logger: Gutenberg logger interface.
Overrides DefaultPluginManager::__construct
File
- src/
GutenbergLibraryManager.php, line 91
Class
- GutenbergLibraryManager
- Provides the default .gutenberg.yml library plugin manager.
Namespace
Drupal\gutenbergCode
public function __construct(ModuleHandlerInterface $module_handler, ThemeHandlerInterface $theme_handler, ThemeInitializationInterface $theme_initialization, CacheBackendInterface $cache_backend, LoggerInterface $logger) {
$this->moduleHandler = $module_handler;
$this->themeHandler = $theme_handler;
$this->themeInitialization = $theme_initialization;
$this->logger = $logger;
$this
->alterInfo('gutenberg_info');
$this
->setCacheBackend($cache_backend, 'gutenberg', [
'gutenberg',
]);
}