1. 8.2.x core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php StringTranslationTrait::stringTranslation
  2. 8.0.x core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php StringTranslationTrait::stringTranslation
  3. 8.1.x core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php StringTranslationTrait::stringTranslation
  4. 8.3.x core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php StringTranslationTrait::stringTranslation

The string translation service.

Type: \Drupal\Core\StringTranslation\TranslationInterface

File

core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php, line 29

Class

StringTranslationTrait
Wrapper methods for \Drupal\Core\StringTranslation\TranslationInterface.

Namespace

Drupal\Core\StringTranslation

Code

protected $stringTranslation;