You are here

function responsive_menu_theme in Responsive and off-canvas menu 8.3

Same name and namespace in other branches
  1. 8.2 responsive_menu.module \responsive_menu_theme()
  2. 7.3 responsive_menu.module \responsive_menu_theme()
  3. 7 responsive_menu.module \responsive_menu_theme()
  4. 7.2 responsive_menu.module \responsive_menu_theme()
  5. 4.4.x responsive_menu.module \responsive_menu_theme()
  6. 4.0.x responsive_menu.module \responsive_menu_theme()
  7. 4.1.x responsive_menu.module \responsive_menu_theme()
  8. 4.3.x responsive_menu.module \responsive_menu_theme()

Implements hook_theme().

File

./responsive_menu.module, line 34
Contains procedural code.

Code

function responsive_menu_theme($existing, $type, $theme, $path) {
  $return = [];
  $return['responsive_menu_block_wrapper'] = [
    'template' => 'responsive-menu-block-wrapper',
    'variables' => [
      'content' => [],
    ],
  ];
  $return['responsive_menu_block_toggle'] = [
    'template' => 'responsive-menu-block-toggle',
    'variables' => [],
  ];
  $return['responsive_menu_horizontal'] = [
    'template' => 'responsive-menu-horizontal',
    'variables' => [
      'items' => [],
      'menu_name' => '',
      'attributes' => [],
    ],
    'preprocess functions' => [
      'template_preprocess',
      'contextual_preprocess',
      'template_preprocess_horizontal',
      'responsive_menu_preprocess_horizontal',
    ],
  ];
  $return['responsive_menu_page_wrapper'] = [
    'template' => 'responsive-menu-page-wrapper',
    'variables' => [
      'children' => [],
    ],
  ];
  return $return;
}