public function TestTranslationManager::translateString in Automatic Updates 8.2
Same name in this branch
- 8.2 tests/src/Unit/StagedProjectsValidatorTest.php \Drupal\Tests\automatic_updates\Unit\TestTranslationManager::translateString()
- 8.2 tests/src/Kernel/ReadinessValidation/DiskSpaceValidatorTest.php \Drupal\Tests\automatic_updates\Kernel\ReadinessValidation\TestTranslationManager::translateString()
Translates a TranslatableMarkup object to a string.
Parameters
\Drupal\Core\StringTranslation\TranslatableMarkup $translated_string: A TranslatableMarkup object.
Return value
string The translated string.
Overrides TranslationInterface::translateString
File
- tests/
src/ Kernel/ ReadinessValidation/ DiskSpaceValidatorTest.php, line 228
Class
- TestTranslationManager
- Implements a translation manager in tests.
Namespace
Drupal\Tests\automatic_updates\Kernel\ReadinessValidationCode
public function translateString(TranslatableMarkup $translated_string) {
return $translated_string
->getUntranslatedString();
}