You are here

function menu_item_extras_theme in Menu Item Extras 8.2

Same name and namespace in other branches
  1. 8 menu_item_extras.module \menu_item_extras_theme()

Implements hook_theme().

File

./menu_item_extras.module, line 110
Manage fields for the menu items.

Code

function menu_item_extras_theme() {
  $theme = [];
  $theme['menu__extras'] = [
    'render element' => 'content',
    'base hook' => 'menu',
  ];
  $theme['menu_link_content'] = [
    'render element' => 'elements',
    'file' => 'menu_item_extras.theme.inc',
    'template' => 'menu-link-content',
  ];
  $theme['menu_levels'] = [
    'render element' => 'element',
    'file' => 'menu_item_extras.theme.inc',
    'template' => 'menu-levels',
  ];
  return $theme;
}