toolbar.services.yml

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

File

core/modules/toolbar/toolbar.services.yml

View source
  1. services:
  2. cache.toolbar:
  3. class: Drupal\Core\Cache\CacheBackendInterface
  4. tags:
  5. - { name: cache.bin }
  6. factory: ['@cache_factory', 'get']
  7. arguments: [toolbar]
  8. toolbar.page_cache_request_policy.allow_toolbar_path:
  9. class: Drupal\toolbar\PageCache\AllowToolbarPath
  10. tags:
  11. - { name: page_cache_request_policy }
  12. toolbar.menu_tree:
  13. class: Drupal\toolbar\Menu\ToolbarMenuLinkTree
  14. arguments: ['@menu.tree_storage', '@plugin.manager.menu.link', '@router.route_provider', '@menu.active_trail', '@callable_resolver']

Services

Title Deprecated Summary
cache.toolbar Drupal\Core\Cache\CacheBackendInterface
toolbar.menu_tree Drupal\toolbar\Menu\ToolbarMenuLinkTree
toolbar.page_cache_request_policy.allow_toolbar_path Drupal\toolbar\PageCache\AllowToolbarPath

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