You are here

public function IconRendererManager::__construct in Icon API 8

Constructs a new \Drupal\icon\IconRendererManager 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/IconRendererManager.php, line 34

Class

IconRendererManager
Class IconRendererManager

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\\IconRendererInterface', 'Drupal\\icon\\Annotation\\IconRenderer');
  $this
    ->alterInfo('icon_renderer_handler_info');
  $this
    ->setCacheBackend($cache_backend, 'icon_renderer_handler_info');
}