You are here

public function TestMigrateExecutable::setStringTranslation in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/migrate/tests/src/Unit/TestMigrateExecutable.php \Drupal\Tests\migrate\Unit\TestMigrateExecutable::setStringTranslation()

Sets the string translation service.

Parameters

\Drupal\Core\StringTranslation\TranslationInterface $string_translation: The translation manager.

Overrides StringTranslationTrait::setStringTranslation

File

core/modules/migrate/tests/src/Unit/TestMigrateExecutable.php, line 38
Contains \Drupal\Tests\migrate\Unit\TestMigrateExecutable.

Class

TestMigrateExecutable
Tests MigrateExecutable.

Namespace

Drupal\Tests\migrate\Unit

Code

public function setStringTranslation(TranslationInterface $string_translation) {
  $this->stringTranslation = $string_translation;
}