public function LocaleTranslation::__construct

Constructs a translator using a string storage.

Parameters

\Drupal\locale\StringStorageInterface $storage: Storage to use when looking for new translations.

File

drupal/core/modules/locale/lib/Drupal/locale/LocaleTranslation.php, line 46
Contains \Drupal\Core\Language\LocaleTranslation.

Class

LocaleTranslation
String translator using the locale module.

Namespace

Drupal\locale

Code

public function __construct(StringStorageInterface $storage) {
  $this->storage = $storage;
}