public function StylesGroupManager::__construct in Bootstrap Styles 1.0.x
Constructs a StylesGroupManager 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.
\Drupal\bootstrap_styles\Style\StylePluginManagerInterface $style_manager: The style plugin manager interface.
\Drupal\Core\Config\ConfigFactoryInterface $config_factory: Config factory service.
Overrides DefaultPluginManager::__construct
File
- src/
StylesGroup/ StylesGroupManager.php, line 46
Class
- StylesGroupManager
- Provides an StylesGroup plugin manager.
Namespace
Drupal\bootstrap_styles\StylesGroupCode
public function __construct(\Traversable $namespaces, CacheBackendInterface $cache_backend, ModuleHandlerInterface $module_handler, StylePluginManagerInterface $style_manager, ConfigFactoryInterface $config_factory) {
parent::__construct('Plugin/BootstrapStyles/StylesGroup', $namespaces, $module_handler, 'Drupal\\bootstrap_styles\\StylesGroup\\StylesGroupPluginInterface', 'Drupal\\bootstrap_styles\\Annotation\\StylesGroup');
$this
->alterInfo('bootstrap_styles_info');
$this
->setCacheBackend($cache_backend, 'bootstrap_styles_groups');
$this->styleManager = $style_manager;
$this->configFactory = $config_factory;
}