core_context.services.yml in Core Context 8
File
core_context.services.ymlView source
- services:
- core_context:
- class: 'Drupal\core_context\ContextProvider\Generic'
- tags:
- - { name: context_provider }
- - { name: service_collector, call: addProvider, tag: core_context.context_provider }
-
- core_context.canonical_entity:
- class: 'Drupal\core_context\ContextProvider\CanonicalEntity'
- arguments:
- - '@entity_display.repository'
- - '@current_route_match'
- - '@entity_type.manager'
- tags:
- - { name: core_context.context_provider }
-
- core_context.route_subscriber:
- class: 'Drupal\core_context\Routing\RouteSubscriber'
- tags:
- - { name: event_subscriber }