public function ProdCheckCategoryPluginManager::__construct in Production check & Production monitor 8
Constructs a new ProdCheckCategoryPluginManager instance.
Parameters
\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler.
\Drupal\Core\Cache\CacheBackendInterface $cache_backend: The cache backend.
Overrides DefaultPluginManager::__construct
File
- src/
Plugin/ ProdCheckCategoryPluginManager.php, line 25
Class
- ProdCheckCategoryPluginManager
- Defines a prod check categories plugin manager to deal with categories.
Namespace
Drupal\prod_check\PluginCode
public function __construct(ModuleHandlerInterface $module_handler, CacheBackendInterface $cache_backend) {
$this->factory = new ContainerFactory($this);
$this->moduleHandler = $module_handler;
$this
->alterInfo('prod_check_categories');
$this
->setCacheBackend($cache_backend, 'prod_check_categories');
}