public function FileMetadata::loadMetadataFromCache in File metadata manager 8
Same name and namespace in other branches
- 8.2 src/FileMetadata.php \Drupal\file_mdm\FileMetadata::loadMetadataFromCache()
Loads file metadata from a cache entry.
Parameters
string $metadata_id: The id of the FileMetadata plugin.
Return value
bool TRUE if metadata was loaded successfully, FALSE otherwise.
Overrides FileMetadataInterface::loadMetadataFromCache
File
- src/
FileMetadata.php, line 249
Class
- FileMetadata
- A file metadata object.
Namespace
Drupal\file_mdmCode
public function loadMetadataFromCache($metadata_id) {
if ($plugin = $this
->getFileMetadataPlugin($metadata_id)) {
return $plugin
->loadMetadataFromCache();
}
return FALSE;
}