public function LingotekConfigSet::getTargetStatus in Lingotek Translation 7.6
Same name and namespace in other branches
- 7.7 lib/Drupal/lingotek/LingotekConfigSet.php \LingotekConfigSet::getTargetStatus()
Get the set's target translation status for the given locale
File
- lib/
Drupal/ lingotek/ LingotekConfigSet.php, line 631 - Defines LingotekConfigSet.
Class
- LingotekConfigSet
- A class wrapper for Lingotek-specific behavior on ConfigSets.
Code
public function getTargetStatus($lingotek_locale) {
$result = db_select('lingotek_config_metadata', 'meta')
->fields('meta', array(
'value',
))
->condition('id', $this->sid)
->condition('config_key', 'target_sync_status_' . $lingotek_locale)
->execute();
return $result->value;
}