StringTranslationTrait::setStringTranslation

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;
}
doc_Drupal
2016-10-29 09:45:20
Comments
Leave a Comment

Please login to continue.