facets.services.yml 1.53 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13
services:
  plugin.manager.facets.query_type:
    class: Drupal\facets\QueryType\QueryTypePluginManager
    parent: default_plugin_manager
  plugin.manager.facets.widget:
    class: Drupal\facets\Widget\WidgetPluginManager
    parent: default_plugin_manager
  plugin.manager.facets.facet_source:
    class: Drupal\facets\FacetSource\FacetSourcePluginManager
    parent: default_plugin_manager
  plugin.manager.facets.processor:
    class: Drupal\facets\Processor\ProcessorPluginManager
    arguments: ['@container.namespaces', '@cache.discovery', '@module_handler', '@string_translation']
14 15 16
  plugin.manager.facets.url_processor:
    class: Drupal\facets\UrlProcessor\UrlProcessorPluginManager
    parent: default_plugin_manager
17 18 19
  plugin.manager.facets.hierarchy:
    class: Drupal\facets\Hierarchy\HierarchyPluginManager
    parent: default_plugin_manager
20 21 22 23 24 25 26
  facets.manager:
    class: Drupal\facets\FacetManager\DefaultFacetManager
    arguments:
      - '@plugin.manager.facets.query_type'
      - '@plugin.manager.facets.facet_source'
      - '@plugin.manager.facets.processor'
      - '@entity_type.manager'
27 28 29 30
  facets.utility.date_handler:
    class: Drupal\facets\Utility\FacetsDateHandler
    arguments:
      - '@date.formatter'
31 32 33 34
  facets.utility.url_generator:
    class: Drupal\facets\Utility\FacetsUrlGenerator
    arguments:
      - '@plugin.manager.facets.url_processor'
35
      - '@entity_type.manager'
36 37 38 39 40
  facets.event_subscriber:
    class: Drupal\facets\EventSubscriber
    arguments: ['@plugin.manager.block']
    tags:
      - { name: event_subscriber }