class TestTranslationManager in Drupal 9
Same name in this branch
- 9 core/tests/Drupal/Tests/Core/StringTranslation/TranslationManagerTest.php \Drupal\Tests\Core\StringTranslation\TestTranslationManager
- 9 core/modules/user/tests/src/Unit/PermissionHandlerTest.php \Drupal\Tests\user\Unit\TestTranslationManager
Same name and namespace in other branches
- 8 core/tests/Drupal/Tests/Core/StringTranslation/TranslationManagerTest.php \Drupal\Tests\Core\StringTranslation\TestTranslationManager
Hierarchy
- class \Drupal\Core\StringTranslation\TranslationManager implements TranslationInterface, TranslatorInterface
- class \Drupal\Tests\Core\StringTranslation\TestTranslationManager
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\StringTranslationView source
class TestTranslationManager extends TranslationManager {
public function __construct() {
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
TestTranslationManager:: |
public | function |
Constructs a TranslationManager object. Overrides TranslationManager:: |
|
TranslationManager:: |
protected | property | The default langcode used in translations. | |
TranslationManager:: |
protected | property | An array of translators, sorted by priority. | |
TranslationManager:: |
protected | property | An unsorted array of arrays of active translators. | |
TranslationManager:: |
public | function | Appends a translation system to the translation chain. | |
TranslationManager:: |
protected | function | Translates a string to the current language or to a given language. | |
TranslationManager:: |
public | function |
Formats a string containing a count of items. Overrides TranslationInterface:: |
|
TranslationManager:: |
public | function |
Retrieves English string to given language. Overrides TranslatorInterface:: |
|
TranslationManager:: |
public | function |
Resets translation cache. Overrides TranslatorInterface:: |
|
TranslationManager:: |
public | function | Sets the default langcode. | |
TranslationManager:: |
protected | function | Sorts translators according to priority. | |
TranslationManager:: |
public | function |
Translates a string to the current language or to a given language. Overrides TranslationInterface:: |
|
TranslationManager:: |
public | function |
Translates a TranslatableMarkup object to a string. Overrides TranslationInterface:: |