uikit-8.x-3.x-dev/includes/theme.inc
includes/theme.inc
<?php
/**
* @file
* The UIkit theme system, which controls the output of the UIkit theme.
*
* The theme system allows for nearly all output of the Drupal system to be
* customized by UIkit themes.
*
* @ingroup uikit_themeable
*/
/**
* Implements hook_theme().
*/
function uikit_theme($existing, $type, $theme, $path) {
$items['menu__navbar'] = [
'base hook' => 'menu',
'variables' => ['items' => [], 'attributes' => []],
'path' => \Drupal::service('extension.list.theme')->getPath('uikit') . '/templates/navigation',
'template' => 'menu--navbar',
];
$items['menu__offcanvas'] = [
'base hook' => 'menu',
'variables' => ['items' => [], 'attributes' => []],
'path' => \Drupal::service('extension.list.theme')->getPath('uikit') . '/templates/navigation',
'template' => 'menu--offcanvas',
];
return $items;
}
