You are here

function openid_connect_user_cancel in OpenID Connect / OAuth client 2.x

Same name and namespace in other branches
  1. 8 openid_connect.module \openid_connect_user_cancel()
  2. 7 openid_connect.module \openid_connect_user_cancel()

Implements hook_user_cancel().

File

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

Code

function openid_connect_user_cancel($edit, $account, $method) {

  /** @var \Drupal\externalauth\AuthmapInterface $authmap */
  $authmap = \Drupal::service('externalauth.authmap');
  $authmap
    ->delete($account
    ->id());
}