public function TestTranslationManager::translateString in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/user/tests/src/Unit/PermissionHandlerTest.php \Drupal\Tests\user\Unit\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
- core/
modules/ user/ tests/ src/ Unit/ PermissionHandlerTest.php, line 429 - Contains \Drupal\Tests\user\Unit\PermissionHandlerTest.
Class
- TestTranslationManager
- Implements a translation manager in tests.
Namespace
Drupal\Tests\user\UnitCode
public function translateString(TranslatableMarkup $translated_string) {
return $translated_string
->getUntranslatedString();
}