protected function Xliff::writeBR

Writes br tag.

Parameters

XMLWriter $writer: Writer that writes the output.

DOMElement $node: Current node.

$id: Current node id.

1 call to Xliff::writeBR()
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 572

Class

Xliff
Export to XLIFF format.

Namespace

Drupal\tmgmt_file\Plugin\tmgmt_file\Format

Code

protected function writeBR(\XMLWriter $writer, \DOMElement $node, $id) {
  $writer
    ->startElement('x');
  $writer
    ->writeAttribute('id', $id);
  $writer
    ->writeAttribute('ctype', 'lb');
  $writer
    ->endElement();
}