You are here

class TestTranslationManager in Zircon Profile 8

Same name in this branch
  1. 8 core/tests/Drupal/Tests/Core/StringTranslation/TranslationManagerTest.php \Drupal\Tests\Core\StringTranslation\TestTranslationManager
  2. 8 core/modules/user/tests/src/Unit/PermissionHandlerTest.php \Drupal\Tests\user\Unit\TestTranslationManager
Same name and namespace in other branches
  1. 8.0 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 103
Contains \Drupal\Tests\Core\StringTranslation\TranslationManagerTest.

Namespace

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

}

Members

Namesort descending Modifiers Type Description Overrides
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 Holds the array of translators sorted by priority.
TranslationManager::$translators protected property An array of active translators keyed by priority.
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 Formats a string containing a count of items. Overrides TranslationInterface::formatPlural
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 Translates a string to the current language or to a given language. Overrides TranslationInterface::translate
TranslationManager::translateString public function Translates a TranslatableMarkup object to a string. Overrides TranslationInterface::translateString