Error message

  • Warning: count(): Parameter must be an array or an object that implements Countable in _api_make_match_member_link() (line 1230 of /home/projects/api/www/sites/all/modules/api/api.formatting.inc).
  • Warning: count(): Parameter must be an array or an object that implements Countable in _api_make_match_member_link() (line 1230 of /home/projects/api/www/sites/all/modules/api/api.formatting.inc).

function FormatInterface::import

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);