function toolbar_theme
Same name in other branches
- 7.x modules/toolbar/toolbar.module \toolbar_theme()
- 9 core/modules/toolbar/toolbar.module \toolbar_theme()
- 10 core/modules/toolbar/toolbar.module \toolbar_theme()
- 11.x core/modules/toolbar/toolbar.module \toolbar_theme()
Implements hook_theme().
File
-
core/
modules/ toolbar/ toolbar.module, line 38
Code
function toolbar_theme($existing, $type, $theme, $path) {
$items['toolbar'] = [
'render element' => 'element',
];
$items['menu__toolbar'] = [
'base hook' => 'menu',
'variables' => [
'items' => [],
'attributes' => [],
],
];
return $items;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.