StaticTranslation::__construct

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;
}
doc_Drupal
2016-10-29 09:44:26
Comments
Leave a Comment

Please login to continue.