You are here

function toolbar_theme in Drupal 8

Same name and namespace in other branches
  1. 7 modules/toolbar/toolbar.module \toolbar_theme()
  2. 9 core/modules/toolbar/toolbar.module \toolbar_theme()

Implements hook_theme().

File

core/modules/toolbar/toolbar.module, line 38
Administration toolbar for quick access to top level administration items.

Code

function toolbar_theme($existing, $type, $theme, $path) {
  $items['toolbar'] = [
    'render element' => 'element',
  ];
  $items['menu__toolbar'] = [
    'base hook' => 'menu',
    'variables' => [
      'items' => [],
      'attributes' => [],
    ],
  ];
  return $items;
}