locale.services.yml

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

File

core/modules/locale/locale.services.yml

View source
  1. services:
  2. locale.default.config.storage:
  3. class: Drupal\locale\LocaleDefaultConfigStorage
  4. arguments: ['@config.storage', '@language_manager', '%install_profile%']
  5. public: false
  6. locale.config_manager:
  7. class: Drupal\locale\LocaleConfigManager
  8. arguments: ['@config.storage', '@locale.storage', '@config.factory', '@config.typed', '@language_manager', '@locale.default.config.storage', '@config.manager']
  9. locale.storage:
  10. class: Drupal\locale\StringDatabaseStorage
  11. arguments: ['@database']
  12. tags:
  13. - { name: backend_overridable }
  14. locale.project:
  15. class: Drupal\locale\LocaleProjectStorage
  16. arguments: ['@keyvalue']
  17. locale.plural.formula:
  18. class: Drupal\locale\PluralFormula
  19. arguments: ['@language_manager', '@state']
  20. string_translator.locale.lookup:
  21. class: Drupal\locale\LocaleTranslation
  22. arguments: ['@locale.storage', '@cache.default', '@lock', '@config.factory', '@language_manager', '@request_stack']
  23. tags:
  24. - { name: string_translator }
  25. - { name: needs_destruction }
  26. stream_wrapper.translations:
  27. class: Drupal\locale\StreamWrapper\TranslationsStream
  28. tags:
  29. - { name: stream_wrapper, scheme: translations }
  30. locale.config_subscriber:
  31. class: Drupal\locale\LocaleConfigSubscriber
  32. arguments: ['@config.factory', '@locale.config_manager']
  33. tags:
  34. - { name: event_subscriber }
  35. locale.locale_translation_cache_tag:
  36. class: Drupal\locale\EventSubscriber\LocaleTranslationCacheTag
  37. arguments: ['@cache_tags.invalidator']
  38. tags:
  39. - { name: event_subscriber }

Services

Title Deprecated Summary
locale.config_manager Drupal\locale\LocaleConfigManager
locale.config_subscriber Drupal\locale\LocaleConfigSubscriber
locale.default.config.storage Drupal\locale\LocaleDefaultConfigStorage
locale.locale_translation_cache_tag Drupal\locale\EventSubscriber\LocaleTranslationCacheTag
locale.plural.formula Drupal\locale\PluralFormula
locale.project Drupal\locale\LocaleProjectStorage
locale.storage Drupal\locale\StringDatabaseStorage
stream_wrapper.translations Drupal\locale\StreamWrapper\TranslationsStream
string_translator.locale.lookup Drupal\locale\LocaleTranslation

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