language.services.yml

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

File

core/modules/language/language.services.yml

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

Services

Title Deprecated Summary
Drupal\Core\Config\ConfigFactoryOverrideInterface
Drupal\language\Config\LanguageConfigFactoryOverrideInterface
Drupal\language\LanguageNegotiatorInterface
language.config_factory_override Drupal\language\Config\LanguageConfigFactoryOverride
language.config_subscriber Drupal\language\EventSubscriber\ConfigSubscriber
language_converter Drupal\language\LanguageConverter
language_negotiator Drupal\language\LanguageNegotiator
plugin.manager.language_negotiation_method Drupal\language\LanguageNegotiationMethodManager
_defaults

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