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\HookCode
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;
}