You are here

public function LingotekComment::lingotekDocumentId in Lingotek Translation 7.3

Same name and namespace in other branches
  1. 7.2 lib/Drupal/lingotek/LingotekComment.php \LingotekComment::lingotekDocumentId()
  2. 7.4 lib/Drupal/lingotek/LingotekComment.php \LingotekComment::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/LingotekComment.php, line 446
Defines LingotekComment.

Class

LingotekComment
A class wrapper for Lingotek-specific behavior on Comments.

Code

public function lingotekDocumentId() {
  return $this
    ->getMetadataValue('document_id');
}