You are here

public function YamlContentProcessManager::__construct in YAML Content 8

Constructs a YamlContentProcessManager object.

Parameters

\Traversable $namespaces: An object that implements \Traversable which contains the root paths keyed by the corresponding namespace to look for plugin implementations.

\Drupal\Core\Cache\CacheBackendInterface $cache_backend: Cache backend instance to use.

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

Overrides DefaultPluginManager::__construct

File

src/Plugin/YamlContentProcessManager.php, line 26

Class

YamlContentProcessManager
Manages discovery and instantiation of YAML Content process plugins.

Namespace

Drupal\yaml_content\Plugin

Code

public function __construct(\Traversable $namespaces, CacheBackendInterface $cache_backend, ModuleHandlerInterface $module_handler) {
  parent::__construct("Plugin/yaml_content/process", $namespaces, $module_handler, YamlContentProcessInterface::class, YamlContentProcess::class);
  $this
    ->setCacheBackend($cache_backend, 'yaml_content_process_plugins');
}