You are here

public function FilebrowserStorage::loadRecordsFromRoot in Filebrowser 8.2

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

File

src/Services/FilebrowserStorage.php, line 135

Class

FilebrowserStorage

Namespace

Drupal\filebrowser\Services

Code

public function loadRecordsFromRoot($nid, $root) {
  return $this->connection
    ->query('SELECT * FROM {filebrowser_content} where nid = :nid and root = :root', [
    ':nid' => $nid,
    ':root' => $root,
  ])
    ->fetchAllAssoc('path', \PDO::FETCH_ASSOC);
}