You are here

function smartmenus_theme in Smartmenus.js 8

Same name and namespace in other branches
  1. 7 smartmenus.module \smartmenus_theme()

Implements hook_theme().

2 string references to 'smartmenus_theme'
SmartMenusBlock::getDefaultTheme in src/Plugin/Block/SmartMenusBlock.php
SmartmenusSettingsForm::buildForm in src/Form/SmartmenusSettingsForm.php
Form constructor.

File

./smartmenus.module, line 30
Contains smartmenus.module.

Code

function smartmenus_theme() {
  return [
    'smartmenus_block' => [
      'variables' => [
        'menu_tree' => NULL,
        'attributes' => NULL,
      ],
    ],
    'smartmenus_menu' => [
      'variables' => [
        'items' => NULL,
        'attributes' => NULL,
        'menu_name' => NULL,
        'depth' => NULL,
        'toggle' => NULL,
      ],
    ],
    'smartmenus_toggle' => [
      'variables' => [],
    ],
  ];
}