You are here

function webform_access_node_delete in Webform 6.x

Same name and namespace in other branches
  1. 8.5 modules/webform_access/webform_access.module \webform_access_node_delete()

Implements hook_node_delete().

File

modules/webform_access/webform_access.module, line 68
Provides webform access controls for webform nodes.

Code

function webform_access_node_delete(EntityInterface $entity) {
  \Drupal::database()
    ->delete('webform_access_group_entity')
    ->condition('entity_type', 'node')
    ->condition('entity_id', $entity
    ->id())
    ->execute();
}