You are here

public function ConfigProviderManager::__construct in Configuration Provider 8

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

Constructor for ConfigProviderManager 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/ConfigProviderManager.php, line 25

Class

ConfigProviderManager
Provides the Configuration provider plugin manager.

Namespace

Drupal\config_provider\Plugin

Code

public function __construct(\Traversable $namespaces, CacheBackendInterface $cache_backend, ModuleHandlerInterface $module_handler) {
  parent::__construct('Plugin/ConfigProvider', $namespaces, $module_handler, 'Drupal\\config_provider\\Plugin\\ConfigProviderInterface', 'Drupal\\config_provider\\Annotation\\ConfigProvider');
  $this
    ->alterInfo('config_provider_config_provider_info');
  $this
    ->setCacheBackend($cache_backend, 'config_provider_config_provider_plugins');
}