public static function LingotekConfigSet::getLingotekTranslationAgentId in Lingotek Translation 7.6
Same name and namespace in other branches
- 7.7 lib/Drupal/lingotek/LingotekConfigSet.php \LingotekConfigSet::getLingotekTranslationAgentId()
Get lingotek translation agent ID
3 calls to LingotekConfigSet::getLingotekTranslationAgentId()
- LingotekConfigSet::saveSegmentTranslations in lib/
Drupal/ lingotek/ LingotekConfigSet.php - Save segment target translations for the given language
- LingotekSync::getQueryCompletedConfigTranslations in lib/
Drupal/ lingotek/ LingotekSync.php - lingotek_get_locked_config_translations in ./
lingotek.config.inc - Gets record of all Non-Lingotek translations (translation_agent_id != 3)
File
- lib/
Drupal/ lingotek/ LingotekConfigSet.php, line 1015 - Defines LingotekConfigSet.
Class
- LingotekConfigSet
- A class wrapper for Lingotek-specific behavior on ConfigSets.
Code
public static function getLingotekTranslationAgentId() {
$result = db_select('lingotek_translation_agent', 'lta')
->fields('lta', array(
'id',
))
->condition('name', 'Lingotek')
->execute();
return $result
->fetchField();
}