You are here

public function EntityBrowserEnhancedPluginManager::__construct in Entity Browser Enhance(d|r) 8

Constructs a new EntityBrowserEnhancedPluginManager 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/EntityBrowserEnhancedPluginManager.php, line 40

Class

EntityBrowserEnhancedPluginManager
Provides the default entity_browser_enhanced_plugin manager.

Namespace

Drupal\entity_browser_enhanced

Code

public function __construct(\Traversable $namespaces, CacheBackendInterface $cache_backend, ModuleHandlerInterface $module_handler) {
  $this->moduleHandler = $module_handler;
  $this
    ->setCacheBackend($cache_backend, 'entity_browser_enhanced_plugin', [
    'entity_browser_enhanced_plugin',
  ]);
}