LanguageRequestSubscriber::$translation

Same name in other branches
  1. 9 core/modules/language/src/EventSubscriber/LanguageRequestSubscriber.php \Drupal\language\EventSubscriber\LanguageRequestSubscriber::translation
  2. 8.9.x core/modules/language/src/EventSubscriber/LanguageRequestSubscriber.php \Drupal\language\EventSubscriber\LanguageRequestSubscriber::translation
  3. 10 core/modules/language/src/EventSubscriber/LanguageRequestSubscriber.php \Drupal\language\EventSubscriber\LanguageRequestSubscriber::translation

The translation service.

Type: \Drupal\Core\StringTranslation\Translator\TranslatorInterface

File

core/modules/language/src/EventSubscriber/LanguageRequestSubscriber.php, line 38

Class

LanguageRequestSubscriber
Sets the $request property on the language manager.

Namespace

Drupal\language\EventSubscriber

Code

protected $translation;

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