You are here

public function ConfigFilterPluginManager::__construct in Config Filter 8

Same name and namespace in other branches
  1. 8.2 src/Plugin/ConfigFilterPluginManager.php \Drupal\config_filter\Plugin\ConfigFilterPluginManager::__construct()

Constructor for ConfigFilterPluginManager objects.

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 to invoke the alter hook with.

Overrides DefaultPluginManager::__construct

File

src/Plugin/ConfigFilterPluginManager.php, line 26

Class

ConfigFilterPluginManager
Provides the Config filter plugin plugin manager.

Namespace

Drupal\config_filter\Plugin

Code

public function __construct(\Traversable $namespaces, CacheBackendInterface $cache_backend, ModuleHandlerInterface $module_handler) {
  parent::__construct('Plugin/ConfigFilter', $namespaces, $module_handler, 'Drupal\\config_filter\\Plugin\\ConfigFilterInterface', 'Drupal\\config_filter\\Annotation\\ConfigFilter');
  $this
    ->alterInfo('config_filter_info');
  $this
    ->setCacheBackend($cache_backend, 'config_filter_plugins');
}