You are here

public function FilebrowserStorage::loadAllRecordsFromRoot in Filebrowser 8.2

Same name and namespace in other branches
  1. 3.x src/Services/FilebrowserStorage.php \Drupal\filebrowser\Services\FilebrowserStorage::loadAllRecordsFromRoot()

File

src/Services/FilebrowserStorage.php, line 141

Class

FilebrowserStorage

Namespace

Drupal\filebrowser\Services

Code

public function loadAllRecordsFromRoot($nid) {
  return $this->connection
    ->query('SELECT fid, path, root, file_data FROM {filebrowser_content} where nid = :nid', [
    ':nid' => $nid,
  ])
    ->fetchAllAssoc('fid');
}