public StaticTranslation::__construct($translations = array())
Constructs a translator from an array of translations.
Parameters
array $translations: Array of override strings indexed by language and context
File
- core/lib/Drupal/Core/StringTranslation/Translator/StaticTranslation.php, line 26
Class
- StaticTranslation
- String translator with a static cache for translations.
Namespace
Drupal\Core\StringTranslation\Translator
Code
public function __construct($translations = array()) { $this->translations = $translations; }
Please login to continue.