Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. TopBarItemManager.php

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\navigation

Code

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');
}
RSS feed
Powered by Drupal