FileTranslation::__construct

public FileTranslation::__construct($directory)

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 31

Class

FileTranslation
File based string translation.

Namespace

Drupal\Core\StringTranslation\Translator

Code

public function __construct($directory) {
  parent::__construct();
  $this->directory = $directory;
}
doc_Drupal
2016-10-29 09:14:04
Comments
Leave a Comment

Please login to continue.