language.services.yml 1.1 KB

1234567891011121314151617181920212223242526
  1. services:
  2. plugin.manager.language_negotiation_method:
  3. class: Drupal\language\LanguageNegotiationMethodManager
  4. arguments: ['@container.namespaces', '@cache.discovery', '@module_handler']
  5. language_negotiator:
  6. class: Drupal\language\LanguageNegotiator
  7. arguments: ['@language_manager', '@plugin.manager.language_negotiation_method', '@config.factory', '@settings', '@request_stack']
  8. calls:
  9. - [initLanguageManager]
  10. language.config_subscriber:
  11. class: Drupal\language\EventSubscriber\ConfigSubscriber
  12. arguments: ['@language_manager', '@language.default', '@config.factory', '@language_negotiator']
  13. tags:
  14. - { name: event_subscriber }
  15. language.config_factory_override:
  16. class: Drupal\language\Config\LanguageConfigFactoryOverride
  17. arguments: ['@config.storage', '@event_dispatcher', '@config.typed', '@language.default']
  18. tags:
  19. - { name: config.factory.override, priority: -254 }
  20. - { name: event_subscriber }
  21. language_converter:
  22. class: Drupal\language\LanguageConverter
  23. arguments: ['@language_manager']
  24. tags:
  25. - { name: paramconverter }
  26. lazy: true