function toolbar_theme in Drupal 8
Same name and namespace in other branches
- 7 modules/toolbar/toolbar.module \toolbar_theme()
- 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;
}