Writes text according to the XLIFF export settings.
string $text: The contents of the text.
array $key_array: The source item data key.
bool TRUE on success or FALSE on failure.
protected function writeData($text, array $key_array) {
if ($this->job
->getSetting('xliff_cdata')) {
return $this
->writeCdata(trim($text));
}
if ($this->job
->getSetting('xliff_processing')) {
return $this
->writeRaw($this
->processForExport($text, $key_array));
}
return $this
->text($text);
}