You are here

function FormatInterface::import in Translation Management Tool 8

Converts an exported file content back to the translated data.

Parameters

string $imported_file: Path to a file or an XML string to import.

bool $is_file: (optional) Whether $imported_file is the path to a file or not.

Return value

Translated data array.

2 methods override FormatInterface::import()
Html::import in translators/tmgmt_file/src/Plugin/tmgmt_file/Format/Html.php
Implements TMGMTFileExportInterface::import().
Xliff::import in translators/tmgmt_file/src/Plugin/tmgmt_file/Format/Xliff.php
Converts an exported file content back to the translated data.

File

translators/tmgmt_file/src/Format/FormatInterface.php, line 51

Class

FormatInterface
Interface for exporting to a given file format.

Namespace

Drupal\tmgmt_file\Format

Code

function import($imported_file, $is_file = TRUE);