You are here

public function FilebrowserStorage::loadRecordsFromRoot in Filebrowser 3.x

Same name and namespace in other branches
  1. 8.2 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);
}