locale.services.yml

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

File

core/modules/locale/locale.services.yml

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

Services

Title Deprecated Summary
Drupal\locale\EventSubscriber\ConfigSubscriber
Drupal\locale\LocaleSource
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
_defaults

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