You are here

function we_megamenu_theme in Drupal Mega Menu 8

Same name and namespace in other branches
  1. 8.x we_megamenu.module \we_megamenu_theme()

Implements hook_theme().

File

./we_megamenu.module, line 18
Drupal 8 Mega Menu Module.

Code

function we_megamenu_theme($existing, $type, $theme, $path) {
  $items['we_megamenu_backend'] = [
    'variables' => [
      'menu_name' => NULL,
      'content' => NULL,
      'section' => 'admin',
      'blocks' => NULL,
      'block_theme' => NULL,
      'data_config' => NULL,
      'trail' => NULL,
    ],
  ];
  $items['we_megamenu_frontend'] = [
    'variables' => [
      'menu_name' => NULL,
      'content' => NULL,
      'section' => '',
      'blocks' => NULL,
      'block_theme' => NULL,
      'data_config' => NULL,
      'trail' => NULL,
    ],
  ];
  $items['we_megamenu_ul'] = [
    'variables' => [
      'menu_name' => NULL,
      'content' => NULL,
      'section' => 'frontend',
      'items' => NULL,
      'subtree' => NULL,
      'data_config' => NULL,
      'block_theme' => NULL,
      'trail' => NULL,
    ],
  ];
  $items['we_megamenu_li'] = [
    'variables' => [
      'menu_name' => NULL,
      'content' => NULL,
      'section' => 'frontend',
      'title' => NULL,
      'subtree' => NULL,
      'items' => NULL,
      'item' => NULL,
      'data_config' => NULL,
      'block_theme' => NULL,
      'trail' => NULL,
    ],
  ];
  $items['we_megamenu_submenu'] = [
    'variables' => [
      'menu_name' => NULL,
      'content' => NULL,
      'section' => 'frontend',
      'title' => NULL,
      'subtree' => NULL,
      'items' => NULL,
      'data_config' => NULL,
      'item_config' => NULL,
      'block_theme' => NULL,
      'trail' => NULL,
    ],
  ];
  $items['we_megamenu_block'] = [
    'variables' => [
      'menu_name' => NULL,
      'content' => NULL,
      'section' => 'frontend',
      'title' => NULL,
      'subtree' => NULL,
      'items' => NULL,
      'data_config' => NULL,
      'item_config' => NULL,
      'block_content' => NULL,
      'block_theme' => NULL,
      'trail' => NULL,
    ],
  ];
  $items['we_megamenu_row'] = [
    'variables' => [
      'menu_name' => NULL,
      'content' => NULL,
      'section' => 'frontend',
      'title' => NULL,
      'subtree' => NULL,
      'items' => NULL,
      'data_config' => NULL,
      'item_config' => NULL,
      'block_theme' => NULL,
      'trail' => NULL,
    ],
  ];
  $items['we_megamenu_col'] = [
    'variables' => [
      'menu_name' => NULL,
      'content' => NULL,
      'section' => 'frontend',
      'title' => NULL,
      'subtree' => NULL,
      'items' => NULL,
      'data_config' => NULL,
      'item_config' => NULL,
      'block_theme' => NULL,
      'trail' => NULL,
    ],
  ];
  $items['we_megamenu_subul'] = [
    'variables' => [
      'menu_name' => NULL,
      'content' => NULL,
      'section' => 'frontend',
      'items' => NULL,
      'subtree' => NULL,
      'data_config' => NULL,
      'item_config' => NULL,
      'block_theme' => NULL,
      'trail' => NULL,
    ],
  ];
  return $items;
}