You are here

public function LingotekConfigChunk::hasLingotekDocId in Lingotek Translation 7.4

Same name and namespace in other branches
  1. 7.3 lib/Drupal/lingotek/LingotekConfigChunk.php \LingotekConfigChunk::hasLingotekDocId()
  2. 7.5 lib/Drupal/lingotek/LingotekConfigChunk.php \LingotekConfigChunk::hasLingotekDocId()

Return true if current chunk already has an assigned Lingotek Document ID

Return value

boolean TRUE/FALSE

File

lib/Drupal/lingotek/LingotekConfigChunk.php, line 496
Defines LingotekConfigChunk.

Class

LingotekConfigChunk
A class wrapper for Lingotek-specific behavior on ConfigChunks.

Code

public function hasLingotekDocId() {
  $has_id = array_key_exists('document_id', $this->source_meta);
  if ($has_id && $this->source_meta['document_id'] > 0) {
    return TRUE;
  }
  return FALSE;
}