summaryrefslogtreecommitdiffstatshomepage
path: root/core/modules/navigation/navigation.services.yml
blob: 88b6826409a242b3bc74be8a1dcd84eb8b6832ed (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
services:
  _defaults:
    autoconfigure: true
  navigation.renderer:
    class: Drupal\navigation\NavigationRenderer
    arguments:
      [
        '@config.factory',
        '@module_handler',
        '@current_route_match',
        '@plugin.manager.menu.local_task',
        '@image.factory',
        '@file_url_generator',
        '@plugin.manager.layout_builder.section_storage',
        '@request_stack',
        '@extension.list.module',
        '@current_user',
        '@navigation.entity_route_helper',
      ]
  Drupal\navigation\NavigationRenderer: '@navigation.renderer'

  navigation.menu_tree:
    class: Drupal\navigation\Menu\NavigationMenuLinkTree
    arguments:
      [
        '@menu.tree_storage',
        '@plugin.manager.menu.link',
        '@router.route_provider',
        '@menu.active_trail',
        '@callable_resolver',
        '@module_handler',
      ]

  navigation.entity_route_helper:
    class: Drupal\navigation\EntityRouteHelper
    arguments:
      [
        '@current_route_match',
        '@entity_type.manager',
        '@cache.discovery',
      ]
  Drupal\navigation\EntityRouteHelper: '@navigation.entity_route_helper'

  plugin.manager.top_bar_item:
    class: Drupal\navigation\TopBarItemManager
    parent: default_plugin_manager
  Drupal\navigation\TopBarItemManagerInterface: '@plugin.manager.top_bar_item'