public static function LingotekConfigChunk::getLidBySource in Lingotek Translation 7.5
Same name and namespace in other branches
- 7.4 lib/Drupal/lingotek/LingotekConfigChunk.php \LingotekConfigChunk::getLidBySource()
1 call to LingotekConfigChunk::getLidBySource()
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();
}