You are here

public function FileTranslation::__construct in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/lib/Drupal/Core/StringTranslation/Translator/FileTranslation.php \Drupal\Core\StringTranslation\Translator\FileTranslation::__construct()

Constructs a StaticTranslation object.

Parameters

string $directory: The directory to retrieve file translations from.

Overrides StaticTranslation::__construct

File

core/lib/Drupal/Core/StringTranslation/Translator/FileTranslation.php, line 36
Contains \Drupal\Core\StringTranslation\Translator\FileTranslation.

Class

FileTranslation
File based string translation.

Namespace

Drupal\Core\StringTranslation\Translator

Code

public function __construct($directory) {
  parent::__construct();
  $this->directory = $directory;
}