public function BynderMediaApi::getMetaProperties in Bynder 7
Get Metaproperties.
File
- includes/
BynderMediaApi.inc, line 105 - Manages the Bynder media browser functionality
Class
Code
public function getMetaProperties() {
if (!($metaProperties = cache_get('bynder_media_metaproperties', 'cache_bynder'))) {
try {
$result = $this
->getAssetBankManager()
->getMetaProperties()
->wait();
cache_set('bynder_media_metaproperties', $result, 'cache_bynder', CACHE_TEMPORARY);
return $result;
} catch (Exception $e) {
watchdog('bynder', $e
->getMessage());
drupal_set_message(t('Could not retrieve metaproperties:'), 'error');
return false;
}
}
else {
return $metaProperties->data;
}
}