function IconPackManager::__construct
Constructs the IconPackPluginManager object.
Parameters
\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler.
\Drupal\Core\Extension\ThemeHandlerInterface $themeHandler: The theme handler.
\Drupal\Core\Cache\CacheBackendInterface $cacheBackend: The cache backend.
\Drupal\Core\Theme\Icon\IconExtractorPluginManager $iconPackExtractorManager: The icon plugin extractor service.
\Drupal\Core\Theme\Icon\IconCollector $iconCollector: The icon cache collector service.
string $appRoot: The application root.
Overrides DefaultPluginManager::__construct
File
-
core/
lib/ Drupal/ Core/ Theme/ Icon/ Plugin/ IconPackManager.php, line 175
Class
- IconPackManager
- Defines an icon pack plugin manager to deal with icons.
Namespace
Drupal\Core\Theme\Icon\PluginCode
public function __construct(ModuleHandlerInterface $module_handler, ThemeHandlerInterface $themeHandler, CacheBackendInterface $cacheBackend, IconExtractorPluginManager $iconPackExtractorManager, IconCollector $iconCollector, string $appRoot) {
$this->moduleHandler = $module_handler;
$this->factory = new ContainerFactory($this);
$this->alterInfo('icon_pack');
$this->setCacheBackend($cacheBackend, 'icon_pack', [
'icon_pack_plugin',
'icon_pack_collector',
]);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.