Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. NavigationHooks.php

function NavigationHooks::theme

Implements hook_theme().

File

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

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['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,
        ],
    ];
    $items['navigation_content_top'] = [
        'variables' => [
            'items' => [],
        ],
    ];
    return $items;
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal