function TestTranslationManager::translateString
Same name in other branches
- 8.9.x core/modules/user/tests/src/Unit/PermissionHandlerTest.php \Drupal\Tests\user\Unit\TestTranslationManager::translateString()
- 10 core/modules/user/tests/src/Unit/PermissionHandlerTest.php \Drupal\Tests\user\Unit\TestTranslationManager::translateString()
- 11.x core/modules/user/tests/src/Unit/PermissionHandlerTest.php \Drupal\Tests\user\Unit\TestTranslationManager::translateString()
Overrides TranslationInterface::translateString
File
-
core/
modules/ user/ tests/ src/ Unit/ PermissionHandlerTest.php, line 391
Class
- TestTranslationManager
- Implements a translation manager in tests.
Namespace
Drupal\Tests\user\UnitCode
public function translateString(TranslatableMarkup $translated_string) {
return $translated_string->getUntranslatedString();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.