You are here

public function LingotekNode::lingotekDocumentId in Lingotek Translation 7.3

Same name and namespace in other branches
  1. 7.2 lib/Drupal/lingotek/LingotekNode.php \LingotekNode::lingotekDocumentId()
  2. 7.4 lib/Drupal/lingotek/LingotekNode.php \LingotekNode::lingotekDocumentId()

Gets the Lingotek document ID for this entity.

Return value

mixed The integer document ID if the entity is associated with a Lingotek document. FALSE otherwise.

Overrides LingotekTranslatableEntity::lingotekDocumentId

File

lib/Drupal/lingotek/LingotekNode.php, line 137
Defines LingotekNode.

Class

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

Code

public function lingotekDocumentId() {
  return lingotek_lingonode($this->node->nid, 'document_id');
}