You are here

public static function LingotekConfigChunk::getLidBySource in Lingotek Translation 7.5

Same name and namespace in other branches
  1. 7.4 lib/Drupal/lingotek/LingotekConfigChunk.php \LingotekConfigChunk::getLidBySource()
1 call to LingotekConfigChunk::getLidBySource()
lingotek_admin_save_queued_strings in ./lingotek.admin.inc

File

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

Class

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

Code

public static function getLidBySource($source_string) {
  return db_select('{locales_source}', 's')
    ->fields('s', array(
    'lid',
  ))
    ->condition('s.source', $source_string)
    ->execute()
    ->fetchField();
}