You are here

public function LingotekConfigSet::hasLingotekDocId in Lingotek Translation 7.6

Same name and namespace in other branches
  1. 7.7 lib/Drupal/lingotek/LingotekConfigSet.php \LingotekConfigSet::hasLingotekDocId()

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

Return value

boolean TRUE/FALSE

File

lib/Drupal/lingotek/LingotekConfigSet.php, line 620
Defines LingotekConfigSet.

Class

LingotekConfigSet
A class wrapper for Lingotek-specific behavior on ConfigSets.

Code

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