function LocaleTranslation::__construct

Same name in this branch
  1. main core/modules/locale/src/Plugin/QueueWorker/LocaleTranslation.php \Drupal\locale\Plugin\QueueWorker\LocaleTranslation::__construct()
Same name and namespace in other branches
  1. 10 core/modules/locale/src/LocaleTranslation.php \Drupal\locale\LocaleTranslation::__construct()
  2. 10 core/modules/locale/src/Plugin/QueueWorker/LocaleTranslation.php \Drupal\locale\Plugin\QueueWorker\LocaleTranslation::__construct()
  3. 11.x core/modules/locale/src/LocaleTranslation.php \Drupal\locale\LocaleTranslation::__construct()
  4. 11.x core/modules/locale/src/Plugin/QueueWorker/LocaleTranslation.php \Drupal\locale\Plugin\QueueWorker\LocaleTranslation::__construct()
  5. 9 core/modules/locale/src/LocaleTranslation.php \Drupal\locale\LocaleTranslation::__construct()
  6. 9 core/modules/locale/src/Plugin/QueueWorker/LocaleTranslation.php \Drupal\locale\Plugin\QueueWorker\LocaleTranslation::__construct()
  7. 8.9.x core/modules/locale/src/LocaleTranslation.php \Drupal\locale\LocaleTranslation::__construct()
  8. 8.9.x core/modules/locale/src/Plugin/QueueWorker/LocaleTranslation.php \Drupal\locale\Plugin\QueueWorker\LocaleTranslation::__construct()

File

core/modules/locale/src/LocaleTranslation.php, line 44

Class

LocaleTranslation
String translator using the locale module.

Namespace

Drupal\locale

Code

public function __construct(protected StringStorageInterface $storage, #[Autowire(service: 'cache.default')] protected CacheBackendInterface $cache, #[Autowire(service: 'lock')] protected LockBackendInterface $lock, protected ConfigFactoryInterface $configFactory, protected LanguageManagerInterface $languageManager, protected RequestStack $requestStack) {
}

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