You are here

public static function LingotekConfigSet::getDocId in Lingotek Translation 7.7

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

File

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

Class

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

Code

public static function getDocId($set_id) {
  $doc_id = db_select('lingotek_config_metadata', 'l')
    ->fields('l', array(
    'value',
  ))
    ->condition('id', $set_id)
    ->condition('config_key', 'document_id')
    ->execute()
    ->fetchField();
  return $doc_id;
}