locale.services.yml

Same filename and directory in other branches
  1. 10 core/modules/locale/locale.services.yml
  2. 9 core/modules/locale/locale.services.yml
  3. 8.9.x core/modules/locale/locale.services.yml
  4. main 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. autowire: true
  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. deprecated: The "%service_id%" service is deprecated in drupal:11.4.0 and is removed from drupal:13.0.0. Use the 'Drupal\locale\LocaleProjectRepository' service instead.See https://www.drupal.org/node/3037033
  25. Drupal\locale\LocaleProjectStorageInterface: '@locale.project'
  26. locale.plural.formula:
  27. class: Drupal\locale\PluralFormula
  28. arguments: ['@language_manager', '@state']
  29. Drupal\locale\PluralFormulaInterface: '@locale.plural.formula'
  30. string_translator.locale.lookup:
  31. class: Drupal\locale\LocaleTranslation
  32. arguments: ['@locale.storage', '@cache.default', '@lock', '@config.factory', '@language_manager', '@request_stack']
  33. tags:
  34. - { name: string_translator }
  35. - { name: needs_destruction }
  36. stream_wrapper.translations:
  37. class: Drupal\locale\StreamWrapper\TranslationsStream
  38. tags:
  39. - { name: stream_wrapper, scheme: translations }
  40. locale.config_subscriber:
  41. class: Drupal\locale\LocaleConfigSubscriber
  42. autowire: true
  43. locale.locale_translation_cache_tag:
  44. class: Drupal\locale\EventSubscriber\LocaleTranslationCacheTag
  45. arguments: ['@cache_tags.invalidator']
  46. Drupal\locale\EventSubscriber\ConfigSubscriber:
  47. autowire: true
  48. Drupal\locale\LocaleSource:
  49. autowire: true
  50. Drupal\locale\LocaleFetch:
  51. autowire: true
  52. Drupal\locale\File\LocaleFileManager:
  53. autowire: true
  54. Drupal\locale\LocaleProjectRepository:
  55. autowire: true
  56. Drupal\locale\LocaleProjectChecker:
  57. autowire: true
  58. Drupal\locale\LocaleConfigBatch:
  59. autowire: true
  60. Drupal\locale\LocaleImportBatch:
  61. autowire: true
  62. logger.channel.locale:
  63. parent: logger.channel_base
  64. arguments: ['locale']
  65. Drupal\locale\CurrentImportStorage:
  66. autowire: true
  67. Drupal\locale\LocaleLanguages:
  68. autowire: true
  69. Drupal\locale\LocaleJs:
  70. autowire: true

Services


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