public function FilebrowserStorage::updateRootContentField in Filebrowser 8.2
Same name and namespace in other branches
- 3.x src/Services/FilebrowserStorage.php \Drupal\filebrowser\Services\FilebrowserStorage::updateRootContentField()
File
- src/
Services/ FilebrowserStorage.php, line 161
Class
Namespace
Drupal\filebrowser\ServicesCode
public function updateRootContentField($nid, $old_root, $new_root) {
return $this->connection
->update('filebrowser_content')
->fields([
'root' => $new_root,
])
->condition('nid', $nid, '=')
->condition('root', $old_root, '=')
->execute();
}