function TestTranslationManager::translate
Same name in other branches
- 9 core/modules/user/tests/src/Unit/PermissionHandlerTest.php \Drupal\Tests\user\Unit\TestTranslationManager::translate()
- 10 core/modules/user/tests/src/Unit/PermissionHandlerTest.php \Drupal\Tests\user\Unit\TestTranslationManager::translate()
- 11.x core/modules/user/tests/src/Unit/PermissionHandlerTest.php \Drupal\Tests\user\Unit\TestTranslationManager::translate()
Overrides TranslationInterface::translate
File
-
core/
modules/ user/ tests/ src/ Unit/ PermissionHandlerTest.php, line 417
Class
- TestTranslationManager
- Implements a translation manager in tests.
Namespace
Drupal\Tests\user\UnitCode
public function translate($string, array $args = [], array $options = []) {
return new TranslatableMarkup($string, $args, $options, $this);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.