You are here

function seeds_toolbar_theme in Seeds Toolbar 8

Implements hook_theme().

File

./seeds_toolbar.module, line 27
Contains seeds_toolbar.module.

Code

function seeds_toolbar_theme() {
  return [
    'seeds_toolbar' => [
      'render element' => 'children',
      'base hook' => 'toolbar',
    ],
    'seeds_add' => [
      'render element' => 'children',
      'variables' => [
        'content_links' => NULL,
        'taxonomy_links' => NULL,
        'blocks_links' => NULL,
      ],
    ],
    'seeds_toolbar_menu' => [
      'render element' => 'children',
      'base hook' => 'menu',
    ],
    'seeds_add_menu' => [
      'render element' => 'children',
      'variables' => [
        'items' => NULL,
        'menu_name' => 'menu',
      ],
      // Changing the base hook fixes an error with menu_link_attributes module.
      'base hook' => 'seeds_add_menu',
    ],
    'seeds_toolbar_help' => [
      'render element' => 'children',
    ],
  ];
}