You are here

function openid_connect_user_delete in OpenID Connect / OAuth client 8

Same name and namespace in other branches
  1. 7 openid_connect.module \openid_connect_user_delete()

Implements hook_ENTITY_TYPE_delete() for user.

File

./openid_connect.module, line 85
Hook implementations of the OpenID Connect module.

Code

function openid_connect_user_delete(EntityInterface $entity) {
  $authmap = \Drupal::service('openid_connect.authmap');
  $authmap
    ->deleteAssociation($entity
    ->id());
}