function NavigationHooks::theme

Implements hook_theme().

File

core/modules/navigation/src/Hook/NavigationHooks.php, line 77

Class

NavigationHooks
Hook implementations for navigation.

Namespace

Drupal\navigation\Hook

Code

public function theme($existing, $type, $theme, $path) : array {
    $items['top_bar'] = [
        'render element' => 'element',
    ];
    $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.