function DevelDumperPluginManager::__construct
Same name in other branches
- 5.x src/DevelDumperPluginManager.php \Drupal\devel\DevelDumperPluginManager::__construct()
Constructs a DevelDumperPluginManager 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 to invoke the alter hook with.
Overrides DefaultPluginManager::__construct
File
-
src/
DevelDumperPluginManager.php, line 31
Class
- DevelDumperPluginManager
- Plugin type manager for Devel Dumper plugins.
Namespace
Drupal\develCode
public function __construct(\Traversable $namespaces, CacheBackendInterface $cache_backend, ModuleHandlerInterface $module_handler) {
parent::__construct('Plugin/Devel/Dumper', $namespaces, $module_handler, DevelDumperInterface::class, DevelDumper::class);
$this->setCacheBackend($cache_backend, 'devel_dumper_plugins');
$this->alterInfo('devel_dumper_info');
}