locale.services.yml
Same filename in other branches
File
-
core/
modules/ locale/ locale.services.yml
View source
- services:
- locale.default.config.storage:
- class: Drupal\locale\LocaleDefaultConfigStorage
- arguments: ['@config.storage', '@language_manager', '%install_profile%']
- public: false
- locale.config_manager:
- class: Drupal\locale\LocaleConfigManager
- arguments: ['@config.storage', '@locale.storage', '@config.factory', '@config.typed', '@language_manager', '@locale.default.config.storage', '@config.manager']
- locale.storage:
- class: Drupal\locale\StringDatabaseStorage
- arguments: ['@database']
- tags:
- - { name: backend_overridable }
- locale.project:
- class: Drupal\locale\LocaleProjectStorage
- arguments: ['@keyvalue']
- locale.plural.formula:
- class: Drupal\locale\PluralFormula
- arguments: ['@language_manager', '@state']
- string_translator.locale.lookup:
- class: Drupal\locale\LocaleTranslation
- arguments: ['@locale.storage', '@cache.default', '@lock', '@config.factory', '@language_manager', '@request_stack']
- tags:
- - { name: string_translator }
- - { name: needs_destruction }
- stream_wrapper.translations:
- class: Drupal\locale\StreamWrapper\TranslationsStream
- tags:
- - { name: stream_wrapper, scheme: translations }
- locale.config_subscriber:
- class: Drupal\locale\LocaleConfigSubscriber
- arguments: ['@config.factory', '@locale.config_manager']
- tags:
- - { name: event_subscriber }
- locale.locale_translation_cache_tag:
- class: Drupal\locale\EventSubscriber\LocaleTranslationCacheTag
- arguments: ['@cache_tags.invalidator']
- tags:
- - { 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.