function TestMigrateExecutable::setStringTranslation
Same name in other branches
- 9 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()
- 11.x 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;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.