You are here

function acl_node_delete in ACL 8

Same name and namespace in other branches
  1. 7 acl.module \acl_node_delete()

Implements hook_node_delete().

File

./acl.module, line 356
An API module providing by-user access control lists.

Code

function acl_node_delete(NodeInterface $node) {
  \Drupal::database()
    ->delete('acl_node')
    ->condition('nid', $node
    ->id())
    ->execute();
}