You are here

public function WorkflowGroupManager::__construct in State Machine 8

Constructs a new WorkflowGroupManager object.

Parameters

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

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

Overrides DefaultPluginManager::__construct

File

src/WorkflowGroupManager.php, line 44

Class

WorkflowGroupManager
Manages discovery and instantiation of workflow_group plugins.

Namespace

Drupal\state_machine

Code

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