You are here

public function LogCategoryManager::__construct in Commerce Core 8.2

Constructs a new LogCategoryManager object.

Parameters

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

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

Overrides DefaultPluginManager::__construct

File

modules/log/src/LogCategoryManager.php, line 40

Class

LogCategoryManager
Manages discovery and instantiation of commerce_log_category plugins.

Namespace

Drupal\commerce_log

Code

public function __construct(ModuleHandlerInterface $module_handler, CacheBackendInterface $cache_backend) {
  $this->moduleHandler = $module_handler;
  $this
    ->setCacheBackend($cache_backend, 'commerce_log_category', [
    'commerce_log_category',
  ]);
}