You are here

public function IconProviderManager::__construct in Icon API 8

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

Class

IconProviderManager
Class IconProviderManager

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\\IconProviderInterface', 'Drupal\\icon\\Annotation\\IconProvider');
  $this
    ->alterInfo('icon_provider_handler_info');
  $this
    ->setCacheBackend($cache_backend, 'icon_provider_handler_info');
}