public function TestMigrateExecutable::setStringTranslation in Drupal 9
Same name and namespace in other branches
- 8 core/modules/migrate/tests/src/Unit/TestMigrateExecutable.php \Drupal\Tests\migrate\Unit\TestMigrateExecutable::setStringTranslation()
- 10 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\UnitCode
public function setStringTranslation(TranslationInterface $string_translation) {
$this->stringTranslation = $string_translation;
}