You are here

public function FilebrowserStorage::deleteNode in Filebrowser 8.2

Same name and namespace in other branches
  1. 3.x src/Services/FilebrowserStorage.php \Drupal\filebrowser\Services\FilebrowserStorage::deleteNode()

Delete entry's of filebrowser table

Parameters

int $nid Id of node being deleted.:

Return value

int

File

src/Services/FilebrowserStorage.php, line 70

Class

FilebrowserStorage

Namespace

Drupal\filebrowser\Services

Code

public function deleteNode($nid) {
  return $this->connection
    ->delete('filebrowser_nodes')
    ->condition('nid', $nid)
    ->execute();
}