You are here

public function ExportTypeManager::__construct in Entity Print 8.2

Constructs a new export type manager.

Parameters

\Drupal\Core\Cache\CacheBackendInterface $cache_backend: The cache backend.

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

\Drupal\Core\Extension\ThemeHandlerInterface $theme_handler: The theme handler.

Overrides DefaultPluginManager::__construct

File

src/Plugin/ExportTypeManager.php, line 50

Class

ExportTypeManager
Export type manager.

Namespace

Drupal\entity_print\Plugin

Code

public function __construct(CacheBackendInterface $cache_backend, ModuleHandlerInterface $module_handler, ThemeHandlerInterface $theme_handler) {
  $this
    ->alterInfo('entity_print_export_types');
  $this
    ->setCacheBackend($cache_backend, 'entity_print_export_types', [
    'entity_print_export_types',
  ]);
  $this->moduleHandler = $module_handler;
  $this->themeHandler = $theme_handler;
}