function navigation_theme

Same name in other branches
  1. 10 core/modules/navigation/navigation.module \navigation_theme()

Implements hook_theme().

File

core/modules/navigation/navigation.module, line 90

Code

function navigation_theme($existing, $type, $theme, $path) : array {
    $items['top_bar'] = [
        'variables' => [
            'local_tasks' => [],
        ],
    ];
    $items['top_bar_local_tasks'] = [
        'variables' => [
            'local_tasks' => [],
        ],
    ];
    $items['top_bar_local_task'] = [
        'variables' => [
            'link' => [],
        ],
    ];
    $items['big_pipe_interface_preview__navigation_shortcut_lazy_builder_lazyLinks__Shortcuts'] = [
        'variables' => [
            'callback' => NULL,
            'arguments' => NULL,
            'preview' => NULL,
        ],
        'base hook' => 'big_pipe_interface_preview',
    ];
    $items['block__navigation'] = [
        'render element' => 'elements',
        'base hook' => 'block',
    ];
    $items['navigation_menu'] = [
        'base hook' => 'menu',
        'variables' => [
            'menu_name' => NULL,
            'title' => NULL,
            'items' => [],
            'attributes' => [],
        ],
    ];
    $items['menu_region__footer'] = [
        'variables' => [
            'items' => [],
            'title' => NULL,
            'menu_name' => NULL,
        ],
    ];
    return $items;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.