You are here

function toolbar_theme in Drupal 9

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