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\ElementCode
protected static function topBarItemManager() : TopBarItemManagerInterface {
return \Drupal::service(TopBarItemManagerInterface::class);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.