You are here

public function LingotekEntity::documentLingotekXML in Lingotek Translation 7.7

Same name and namespace in other branches
  1. 7.5 lib/Drupal/lingotek/LingotekEntity.php \LingotekEntity::documentLingotekXML()
  2. 7.6 lib/Drupal/lingotek/LingotekEntity.php \LingotekEntity::documentLingotekXML()

Gets the contents of this item formatted as XML that can be sent to Lingotek.

Return value

string The XML document representing the entity's translatable content.

Overrides LingotekTranslatableEntity::documentLingotekXML

File

lib/Drupal/lingotek/LingotekEntity.php, line 136
Defines LingotekEntity.

Class

LingotekEntity
A class wrapper for Lingotek-specific behavior on nodes.

Code

public function documentLingotekXML() {
  $xml = lingotek_entity_xml_body($this->entity_type, $this->entity);
  return $xml;
}