public function LingotekApi::xmlFormat in Lingotek Translation 7.2
Same name and namespace in other branches
- 7.7 lib/Drupal/lingotek/LingotekApi.php \LingotekApi::xmlFormat()
- 7.3 lib/Drupal/lingotek/LingotekApi.php \LingotekApi::xmlFormat()
- 7.4 lib/Drupal/lingotek/LingotekApi.php \LingotekApi::xmlFormat()
- 7.5 lib/Drupal/lingotek/LingotekApi.php \LingotekApi::xmlFormat()
- 7.6 lib/Drupal/lingotek/LingotekApi.php \LingotekApi::xmlFormat()
Gets the appropriate format code for the current system state.
Return value
string A XML format code.
3 calls to LingotekApi::xmlFormat()
- LingotekApi::addContentDocument in lib/
Drupal/ lingotek/ LingotekApi.php - Add a document to the Lingotek platform.
- LingotekApi::getCommentCreateWithTargetsParams in lib/
Drupal/ lingotek/ LingotekApi.php - Gets the comment-specific parameters for use in a createContentDocumentWithTargets API call.
- LingotekApi::updateContentDocument in lib/
Drupal/ lingotek/ LingotekApi.php - Updates the content of an existing Lingotek document with the current node contents.
File
- lib/
Drupal/ lingotek/ LingotekApi.php, line 820 - Defines Drupal\lingotek\LingotekApi
Class
- LingotekApi
- @file Defines Drupal\lingotek\LingotekApi
Code
public function xmlFormat() {
return variable_get('lingotek_advanced_parsing', TRUE) ? 'XML_OKAPI' : 'XML';
}