You are here

function filebrowser_node_predelete in Filebrowser 8.2

Same name and namespace in other branches
  1. 3.x filebrowser.module \filebrowser_node_predelete()

Implements hook_ENTITY_TYPE_predelete(). @inheritdoc

File

./filebrowser.module, line 203

Code

function filebrowser_node_predelete(NodeInterface $node) {

  // delete information from filebrowser tables
  \Drupal::service('filebrowser.common')
    ->nodeDelete($node
    ->id());
}