You are here

public function IconSetManager::__construct in Icon API 8

Constructs a new \Drupal\icon\IconSetManager 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\Core\Extension\ThemeHandlerInterface $theme_handler: The theme manager used to invoke the alter hook with.

\Drupal\Core\Theme\ThemeManagerInterface $theme_manager: The theme manager used to invoke the alter hook with.

Overrides IconBasePluginManager::__construct

File

src/IconSetManager.php, line 34

Class

IconSetManager
Class IconSetManager

Namespace

Drupal\icon

Code

public function __construct(\Traversable $namespaces, CacheBackendInterface $cache_backend, ModuleHandlerInterface $module_handler, ThemeHandlerInterface $theme_handler, ThemeManagerInterface $theme_manager) {
  parent::__construct($namespaces, $cache_backend, $module_handler, $theme_handler, $theme_manager, 'Drupal\\icon\\Plugin\\Icon\\IconSetInterface', 'Drupal\\icon\\Annotation\\IconSet');
  $this
    ->alterInfo('icon_set_handler_info');
  $this
    ->setCacheBackend($cache_backend, 'icon_set_handler_info');
}