You are here

cheeseburger_menu.module in Cheeseburger Menu 8

File

cheeseburger_menu.module
View source
<?php

/**
 * Implements hook_theme().
 */
function cheeseburger_menu_theme($existing, $type, $theme, $path) {
  return [
    'hierarchical_menu' => [
      'variables' => [
        'menu_tree' => [],
        'route_id' => 0,
        'page_type' => 'unknown',
        'title' => '',
        'machine_name' => '',
        'current_url' => '',
        'block_id' => '',
      ],
    ],
    'hierarchical_navigation' => [
      'variables' => [
        'tree' => [],
      ],
    ],
  ];
}
function cheeseburger_menu_page_attachments(array &$page) {
  $page['#attached']['library'][] = 'cheeseburger_menu/cheeseburger_menu.js';
}