public function FilebrowserStorage::loadRecordsFromRoot in Filebrowser 8.2
Same name and namespace in other branches
- 3.x src/Services/FilebrowserStorage.php \Drupal\filebrowser\Services\FilebrowserStorage::loadRecordsFromRoot()
File
- src/
Services/ FilebrowserStorage.php, line 135
Class
Namespace
Drupal\filebrowser\ServicesCode
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);
}