You are here

function shib_auth_user_delete in Shibboleth Authentication 8

Same name and namespace in other branches
  1. 7.4 shib_auth.module \shib_auth_user_delete()

File

./shib_auth.module, line 24
Contains shib_auth.module.

Code

function shib_auth_user_delete(EntityInterface $entity) {

  /** @var \Drupal\Core\Database\Connection $db */
  $db = \Drupal::service('database');
  $db
    ->delete('shib_authmap')
    ->condition('uid', $entity
    ->id())
    ->execute();
}