function TopBarItemManager::__construct
Constructs the object.
Overrides DefaultPluginManager::__construct
File
-
core/
modules/ navigation/ src/ TopBarItemManager.php, line 20
Class
- TopBarItemManager
- Top bar item plugin manager.
Namespace
Drupal\navigationCode
public function __construct(\Traversable $namespaces, CacheBackendInterface $cache_backend, ModuleHandlerInterface $module_handler) {
parent::__construct('Plugin/TopBarItem', $namespaces, $module_handler, TopBarItemPluginInterface::class, TopBarItem::class);
$this->alterInfo('top_bar_item');
$this->setCacheBackend($cache_backend, 'top_bar_item_plugins');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.