toolbar.services.yml

Same filename and directory in other branches
  1. 11.x core/modules/toolbar/toolbar.services.yml
  2. 10 core/modules/toolbar/toolbar.services.yml
  3. 9 core/modules/toolbar/toolbar.services.yml
  4. 8.9.x core/modules/toolbar/toolbar.services.yml
core/modules/toolbar/toolbar.services.yml

File

core/modules/toolbar/toolbar.services.yml

View source
  1. parameters:
  2. toolbar.skip_procedural_hook_scan: true
  3. services:
  4. _defaults:
  5. autoconfigure: true
  6. autowire: true
  7. cache.toolbar:
  8. class: Drupal\Core\Cache\CacheBackendInterface
  9. tags:
  10. - { name: cache.bin }
  11. factory: ['@cache_factory', 'get']
  12. arguments: [toolbar]
  13. toolbar.page_cache_request_policy.allow_toolbar_path:
  14. class: Drupal\toolbar\PageCache\AllowToolbarPath
  15. tags:
  16. - { name: page_cache_request_policy }
  17. toolbar.menu_tree:
  18. class: Drupal\toolbar\Menu\ToolbarMenuLinkTree
  19. toolbar.user_link_builder:
  20. class: Drupal\toolbar\UserToolbarLinkBuilder
  21. Drupal\toolbar\UserToolbarLinkBuilder: '@toolbar.user_link_builder'
  22. toolbar.announcements_feed_link_builder:
  23. class: \Drupal\toolbar\AnnouncementsFeedToolbarLinkBuilder
  24. \Drupal\toolbar\AnnouncementsFeedToolbarLinkBuilder: '@toolbar.announcements_feed_link_builder'
  25. toolbar.workspaces_ui_link_builder:
  26. class: Drupal\toolbar\WorkspacesUiToolbarLinkBuilder
  27. # Only used when Workspaces UI is installed, which provides the manager.
  28. arguments: ['@?workspaces.manager', '@plugin.manager.element_info']
  29. Drupal\toolbar\WorkspacesUiToolbarLinkBuilder: '@toolbar.workspaces_ui_link_builder'

Services

Title Deprecated Summary
cache.toolbar Drupal\Core\Cache\CacheBackendInterface
toolbar.announcements_feed_link_builder \Drupal\toolbar\AnnouncementsFeedToolbarLinkBuilder
toolbar.menu_tree Drupal\toolbar\Menu\ToolbarMenuLinkTree
toolbar.page_cache_request_policy.allow_toolbar_path Drupal\toolbar\PageCache\AllowToolbarPath
toolbar.user_link_builder Drupal\toolbar\UserToolbarLinkBuilder
toolbar.workspaces_ui_link_builder Drupal\toolbar\WorkspacesUiToolbarLinkBuilder
_defaults

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