You are here

public static function LingotekConfigChunk::getLingotekTranslationAgentId in Lingotek Translation 7.5

Same name and namespace in other branches
  1. 7.4 lib/Drupal/lingotek/LingotekConfigChunk.php \LingotekConfigChunk::getLingotekTranslationAgentId()

Get lingotek translation agent ID

2 calls to LingotekConfigChunk::getLingotekTranslationAgentId()
LingotekConfigChunk::saveSegmentTranslations in lib/Drupal/lingotek/LingotekConfigChunk.php
Save segment target translations for the given language
LingotekSync::getQueryCompletedConfigTranslations in lib/Drupal/lingotek/LingotekSync.php

File

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

Class

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

Code

public static function getLingotekTranslationAgentId() {
  $result = db_select('{lingotek_translation_agent}', 'lta')
    ->fields('lta', array(
    'id',
  ))
    ->condition('name', 'Lingotek')
    ->execute();
  return $result
    ->fetchField();
}