You are here

public function TranslatableTrait::setTranslator in Backup and Migrate 5.0.x

Parameters

TranslatorInterface $translator:

File

src/Core/Translation/TranslatableTrait.php, line 24

Class

TranslatableTrait
This trait can be used to implement the TranslatableInterface.

Namespace

Drupal\backup_migrate\Core\Translation

Code

public function setTranslator(TranslatorInterface $translator) {
  $this->translator = $translator;
}