You are here

public function LingotekEntity::lingotekDocumentId in Lingotek Translation 7.7

Same name and namespace in other branches
  1. 7.5 lib/Drupal/lingotek/LingotekEntity.php \LingotekEntity::lingotekDocumentId()
  2. 7.6 lib/Drupal/lingotek/LingotekEntity.php \LingotekEntity::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/LingotekEntity.php, line 126
Defines LingotekEntity.

Class

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

Code

public function lingotekDocumentId() {
  return $this->entity->lingotek['document_id'];
}