public function FilebrowserStorage::loadRecordsFromRoot in Filebrowser 3.x
Same name and namespace in other branches
- 8.2 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);
}