public function FilebrowserStorage::loadRecordFromPath in Filebrowser 3.x
Same name and namespace in other branches
- 8.2 src/Services/FilebrowserStorage.php \Drupal\filebrowser\Services\FilebrowserStorage::loadRecordFromPath()
Parameters
int $nid:
string $path:
Return value
mixed
File
- src/
Services/ FilebrowserStorage.php, line 119
Class
Namespace
Drupal\filebrowser\ServicesCode
public function loadRecordFromPath($nid, $path) {
//var_dump($nid, $path);die;
return $this->connection
->query("SELECT * FROM {filebrowser_content}\n WHERE nid = :nid AND path = :path AND root = :root", [
':nid' => $nid,
':path' => $path,
':root' => $path,
])
->fetchAssoc();
}