class TestTranslationManager

Same name in this branch
  1. 10 core/modules/user/tests/src/Unit/PermissionHandlerTest.php \Drupal\Tests\user\Unit\TestTranslationManager
Same name in other branches
  1. 9 core/modules/user/tests/src/Unit/PermissionHandlerTest.php \Drupal\Tests\user\Unit\TestTranslationManager
  2. 9 core/tests/Drupal/Tests/Core/StringTranslation/TranslationManagerTest.php \Drupal\Tests\Core\StringTranslation\TestTranslationManager
  3. 8.9.x core/modules/user/tests/src/Unit/PermissionHandlerTest.php \Drupal\Tests\user\Unit\TestTranslationManager
  4. 8.9.x core/tests/Drupal/Tests/Core/StringTranslation/TranslationManagerTest.php \Drupal\Tests\Core\StringTranslation\TestTranslationManager
  5. 11.x core/modules/user/tests/src/Unit/PermissionHandlerTest.php \Drupal\Tests\user\Unit\TestTranslationManager
  6. 11.x core/tests/Drupal/Tests/Core/StringTranslation/TranslationManagerTest.php \Drupal\Tests\Core\StringTranslation\TestTranslationManager

Hierarchy

Expanded class hierarchy of TestTranslationManager

File

core/tests/Drupal/Tests/Core/StringTranslation/TranslationManagerTest.php, line 102

Namespace

Drupal\Tests\Core\StringTranslation
View source
class TestTranslationManager extends TranslationManager {
    public function __construct() {
    }

}

Members

Title Sort descending Modifiers Object type Summary Overriden Title
TestTranslationManager::__construct public function Constructs a TranslationManager object. Overrides TranslationManager::__construct
TranslationManager::$defaultLangcode protected property The default langcode used in translations.
TranslationManager::$sortedTranslators protected property An array of translators, sorted by priority.
TranslationManager::$translators protected property An unsorted array of arrays of active translators.
TranslationManager::addTranslator public function Appends a translation system to the translation chain.
TranslationManager::doTranslate protected function Translates a string to the current language or to a given language.
TranslationManager::formatPlural public function
TranslationManager::getStringTranslation public function Retrieves English string to given language. Overrides TranslatorInterface::getStringTranslation
TranslationManager::reset public function Resets translation cache. Overrides TranslatorInterface::reset
TranslationManager::setDefaultLangcode public function Sets the default langcode.
TranslationManager::sortTranslators protected function Sorts translators according to priority.
TranslationManager::translate public function
TranslationManager::translateString public function

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.