You are here

core_context.services.yml in Core Context 8

File

core_context.services.yml
View source
  1. services:
  2. core_context:
  3. class: 'Drupal\core_context\ContextProvider\Generic'
  4. tags:
  5. - { name: context_provider }
  6. - { name: service_collector, call: addProvider, tag: core_context.context_provider }
  7. core_context.canonical_entity:
  8. class: 'Drupal\core_context\ContextProvider\CanonicalEntity'
  9. arguments:
  10. - '@entity_display.repository'
  11. - '@current_route_match'
  12. - '@entity_type.manager'
  13. tags:
  14. - { name: core_context.context_provider }
  15. core_context.route_subscriber:
  16. class: 'Drupal\core_context\Routing\RouteSubscriber'
  17. tags:
  18. - { name: event_subscriber }