function TestMigrateExecutable::setStringTranslation

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

Code

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.