public function LingotekConfigSet::getMetadataValue in Lingotek Translation 7.6
Same name and namespace in other branches
- 7.7 lib/Drupal/lingotek/LingotekConfigSet.php \LingotekConfigSet::getMetadataValue()
Gets a Lingotek metadata value for this item.
Parameters
string $key: The key whose value should be returned.
Return value
string The value for the specified key, if it exists.
Overrides LingotekTranslatableEntity::getMetadataValue
2 calls to LingotekConfigSet::getMetadataValue()
- LingotekConfigSet::contentUpdated in lib/
Drupal/ lingotek/ LingotekConfigSet.php - Event handler for updates to the config set's data.
- LingotekConfigSet::lingotekDocumentId in lib/
Drupal/ lingotek/ LingotekConfigSet.php - Get the Lingotek document ID for this entity.
File
- lib/
Drupal/ lingotek/ LingotekConfigSet.php, line 729 - Defines LingotekConfigSet.
Class
- LingotekConfigSet
- A class wrapper for Lingotek-specific behavior on ConfigSets.
Code
public function getMetadataValue($key) {
return db_select('lingotek_config_metadata', 'meta')
->fields('meta', array(
'value',
))
->condition('config_key', $key)
->condition('id', $this->sid)
->execute()
->fetchField();
}