toolbar_menu_navigation_links

toolbar_menu_navigation_links(array $tree) Adds toolbar-specific attributes to the menu link tree. Parameters \Drupal\Core\Menu\MenuLinkTreeElement[] $tree: The menu link tree to manipulate. Return value \Drupal\Core\Menu\MenuLinkTreeElement[] The manipulated menu link tree. File core/modules/toolbar/toolbar.module, line 250 Administration toolbar for quick access to top level administration items. Code function toolbar_menu_navigation_links(array $tree) { foreach ($tree as $element) {

ToolbarMenuLinkTree

Extends MenuLinkTree to add specific theme suggestions for the toolbar. Hierarchy class \Drupal\Core\Menu\MenuLinkTree implements MenuLinkTreeInterfaceclass \Drupal\toolbar\Menu\ToolbarMenuLinkTree File core/modules/toolbar/src/Menu/ToolbarMenuLinkTree.php, line 10 Namespace Drupal\toolbar\Menu Members Name Modifiers Type Description MenuLinkTree::$controllerResolver protected property The controller resolver. MenuLinkTree::$menuActiveTrail protected property Th

toolbar_help

toolbar_help($route_name, RouteMatchInterface $route_match) Implements hook_help(). File core/modules/toolbar/toolbar.module, line 19 Administration toolbar for quick access to top level administration items. Code function toolbar_help($route_name, RouteMatchInterface $route_match) { switch ($route_name) { case 'help.page.toolbar': $output = '<h3>' . t('About') . '</h3>'; $output .= '<p>' . t('The Toolbar module provides a toolbar for site administrators, w

toolbar_get_rendered_subtrees

toolbar_get_rendered_subtrees() Returns the rendered subtree of each top-level toolbar link. Return value array An array with the following key-value pairs: 'subtrees': the rendered subtrees 'cacheability: the associated cacheability. File core/modules/toolbar/toolbar.module, line 287 Administration toolbar for quick access to top level administration items. Code function toolbar_get_rendered_subtrees() { $data = [ '#pre_render' => ['_toolbar_do_get_rendered_subtrees'], '#ca

ToolbarItem

Provides a toolbar item that is wrapped in markup for common styling. The 'tray' property contains a renderable array. Plugin annotation @RenderElement("toolbar_item") Hierarchy class \Drupal\Component\Plugin\PluginBase implements DerivativeInspectionInterface, PluginInspectionInterfaceclass \Drupal\Core\Plugin\PluginBase uses DependencySerializationTrait, StringTranslationTraitclass \Drupal\Core\Render\Element\RenderElement implements ElementInterfaceclass \Drupal\toolbar\Element\ToolbarItem

ToolbarItem::getInfo

public ToolbarItem::getInfo() Returns the element properties for this element. Return value array An array of element properties. See \Drupal\Core\Render\ElementInfoManagerInterface::getInfo() for documentation of the standard properties of all elements, and the return value format. Overrides ElementInterface::getInfo File core/modules/toolbar/src/Element/ToolbarItem.php, line 20 Class ToolbarItem Provides a toolbar item that is wrapped in markup for common styling. Namespace Drupal\to

ToolbarItem::preRenderToolbarItem

public static ToolbarItem::preRenderToolbarItem($element) Provides markup for associating a tray trigger with a tray element. A tray is a responsive container that wraps renderable content. Trays present content well on small and large screens alike. Parameters array $element: A renderable array. Return value array A renderable array. File core/modules/toolbar/src/Element/ToolbarItem.php, line 46 Class ToolbarItem Provides a toolbar item that is wrapped in markup for common styling. Na

ToolbarController

Defines a controller for the toolbar module. Hierarchy class \Drupal\Core\Controller\ControllerBase implements ContainerInjectionInterface uses LoggerChannelTrait, LinkGeneratorTrait, RedirectDestinationTrait, UrlGeneratorTrait, StringTranslationTraitclass \Drupal\toolbar\Controller\ToolbarController File core/modules/toolbar/src/Controller/ToolbarController.php, line 14 Namespace Drupal\toolbar\Controller Members Name Modifiers Type Description ControllerBase::$configFactory

ToolbarController::subtreesAjax

public ToolbarController::subtreesAjax() Returns an AJAX response to render the toolbar subtrees. Return value \Drupal\Core\Ajax\AjaxResponse File core/modules/toolbar/src/Controller/ToolbarController.php, line 21 Class ToolbarController Defines a controller for the toolbar module. Namespace Drupal\toolbar\Controller Code public function subtreesAjax() { list($subtrees, $cacheability) = toolbar_get_rendered_subtrees(); $response = new AjaxResponse(); $response->addCommand(new

ToolbarController::checkSubTreeAccess

public ToolbarController::checkSubTreeAccess($hash) Checks access for the subtree controller. Parameters string $hash: The hash of the toolbar subtrees. Return value \Drupal\Core\Access\AccessResultInterface The access result. File core/modules/toolbar/src/Controller/ToolbarController.php, line 50 Class ToolbarController Defines a controller for the toolbar module. Namespace Drupal\toolbar\Controller Code public function checkSubTreeAccess($hash) { $expected_hash = _toolbar_get_sub