You are here

public function ImportProcessorPluginManager::__construct in Entity Share 8.3

Constructs an ImportProcessorPluginManager 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

modules/entity_share_client/src/ImportProcessor/ImportProcessorPluginManager.php, line 30

Class

ImportProcessorPluginManager
Manages import processor plugins.

Namespace

Drupal\entity_share_client\ImportProcessor

Code

public function __construct(\Traversable $namespaces, CacheBackendInterface $cache_backend, ModuleHandlerInterface $module_handler) {
  $subdir = 'Plugin/EntityShareClient/Processor';
  $plugin_interface = 'Drupal\\entity_share_client\\ImportProcessor\\ImportProcessorInterface';
  $plugin_definition_annotation_name = 'Drupal\\entity_share_client\\Annotation\\ImportProcessor';
  parent::__construct($subdir, $namespaces, $module_handler, $plugin_interface, $plugin_definition_annotation_name);
  $this
    ->alterInfo('entity_share_client_import_processor_info');
  $this
    ->setCacheBackend($cache_backend, 'entity_share_client_import_processors');
}