function toolbar_theme in Drupal 10
Same name and namespace in other branches
- 8 core/modules/toolbar/toolbar.module \toolbar_theme()
- 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 39 - 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' => [
'menu_name' => NULL,
'items' => [],
'attributes' => [],
],
];
return $items;
}