class TestTranslationManager in Zircon Profile 8
Same name in this branch
- 8 core/tests/Drupal/Tests/Core/StringTranslation/TranslationManagerTest.php \Drupal\Tests\Core\StringTranslation\TestTranslationManager
- 8 core/modules/user/tests/src/Unit/PermissionHandlerTest.php \Drupal\Tests\user\Unit\TestTranslationManager
Same name and namespace in other branches
- 8.0 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 | Holds the array of translators sorted by priority. | |
TranslationManager:: |
protected | property | An array of active translators keyed by priority. | |
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:: |