You are here

protected function Xliff::writeEPT in Translation Management Tool 8

Writes ending pair tag.

Parameters

XMLWriter $writer: Writer that writes the output.

string $name: Ending tag name.

$id: Current node id.

1 call to Xliff::writeEPT()
Xliff::processForExport in translators/tmgmt_file/src/Plugin/tmgmt_file/Format/Xliff.php
Helper function to process the source text.

File

translators/tmgmt_file/src/Plugin/tmgmt_file/Format/Xliff.php, line 617

Class

Xliff
Export to XLIFF format.

Namespace

Drupal\tmgmt_file\Plugin\tmgmt_file\Format

Code

protected function writeEPT(\XMLWriter $writer, $name, $id) {
  $writer
    ->startElement('ept');
  $writer
    ->writeAttribute('id', $id);
  $writer
    ->text('</' . $name . '>');
  $writer
    ->endElement();
}