public StringTranslationTrait::setStringTranslation(TranslationInterface $translation)
Sets the string translation service to use.
Parameters
\Drupal\Core\StringTranslation\TranslationInterface $translation: The string translation service.
Return value
$this
File
- core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php, line 118
Class
- StringTranslationTrait
- Wrapper methods for \Drupal\Core\StringTranslation\TranslationInterface.
Namespace
Drupal\Core\StringTranslation
Code
public function setStringTranslation(TranslationInterface $translation) { $this->stringTranslation = $translation; return $this; }
Please login to continue.