You are here

public function TestMigrateExecutable::setStringTranslation in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/migrate/tests/src/Unit/TestMigrateExecutable.php \Drupal\Tests\migrate\Unit\TestMigrateExecutable::setStringTranslation()
  2. 9 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 33

Class

TestMigrateExecutable
Tests MigrateExecutable.

Namespace

Drupal\Tests\migrate\Unit

Code

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