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

Breadcrumb

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

function TopBar::topBarItemManager

Wraps the top bar item manager.

Return value

\Drupal\navigation\TopBarItemManager The top bar item manager.

1 call to TopBar::topBarItemManager()
TopBar::preRenderTopBar in core/modules/navigation/src/Element/TopBar.php
Builds the TopBar as a structured array ready for rendering.

File

core/modules/navigation/src/Element/TopBar.php, line 68

Class

TopBar
Provides a render element for the default Drupal toolbar.

Namespace

Drupal\navigation\Element

Code

protected static function topBarItemManager() : TopBarItemManagerInterface {
    return \Drupal::service(TopBarItemManagerInterface::class);
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal