protected function Presentation::retrieveMetadata in Filebrowser 3.x
Same name and namespace in other branches
- 8.2 src/Presentation.php \Drupal\filebrowser\Presentation::retrieveMetadata()
1 call to Presentation::retrieveMetadata()
File
- src/
Presentation.php, line 468
Class
Namespace
Drupal\filebrowserCode
protected function retrieveMetadata($fid) {
$storage = \Drupal::entityTypeManager()
->getStorage('filebrowser_metadata_entity');
$query = \Drupal::entityQuery('filebrowser_metadata_entity');
$e_ids = $query
->condition('fid', $fid, '=')
->execute();
$entities = $storage
->loadMultiple($e_ids);
return $entities;
}