You are here

protected function Presentation::retrieveMetadata in Filebrowser 8.2

Same name and namespace in other branches
  1. 3.x src/Presentation.php \Drupal\filebrowser\Presentation::retrieveMetadata()
1 call to Presentation::retrieveMetadata()
Presentation::listView in src/Presentation.php

File

src/Presentation.php, line 468

Class

Presentation

Namespace

Drupal\filebrowser

Code

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;
}