String translator using overrides from variables.
This is a high performance way to provide a handful of string replacements. See settings.php for examples.
Hierarchy
- class \Drupal\Core\StringTranslation\Translator\StaticTranslation implements TranslatorInterface
- class \Drupal\Core\StringTranslation\Translator\CustomStrings
File
- core/lib/Drupal/Core/StringTranslation/Translator/CustomStrings.php, line 13
Namespace
Drupal\Core\StringTranslation\Translator
Members
Name | Modifiers | Type | Description |
---|---|---|---|
CustomStrings::$settings | protected | property | The settings read only object. |
CustomStrings::getLanguage | protected | function | Retrieves translations for a given language. Overrides StaticTranslation::getLanguage |
CustomStrings::__construct | public | function | Constructs a CustomStrings object. Overrides StaticTranslation::__construct |
StaticTranslation::$translations | protected | property | String translations |
StaticTranslation::getStringTranslation | public | function | Retrieves English string to given language. Overrides TranslatorInterface::getStringTranslation |
StaticTranslation::reset | public | function | Resets translation cache. Overrides TranslatorInterface::reset |
Please login to continue.