You are here

function acl_user_cancel in ACL 8

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

Implements hook_user_cancel().

File

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

Code

function acl_user_cancel($edit, AccountInterface $account, $method) {
  \Drupal::database()
    ->delete('acl_user')
    ->condition('uid', $account
    ->id())
    ->execute();
}