public static function LingotekSync::getProfileByEntityId in Lingotek Translation 7.7
1 call to LingotekSync::getProfileByEntityId()
File
- lib/
Drupal/ lingotek/ LingotekSync.php, line 966 - LingotekSync
Class
- LingotekSync
- A utility class for Lingotek Syncing.
Code
public static function getProfileByEntityId($entity_type, $entity_id) {
$query = db_select('lingotek_entity_metadata', 'lem')
->fields('lem', array(
'value',
))
->condition('lem.entity_id', $entity_id)
->condition('lem.entity_type', $entity_type)
->condition('lem.entity_key', 'profile');
$profile = $query
->execute()
->fetchField();
return $profile;
}