You are here

public static function ExternalAuthenticationHelper::deleteUserIdentifier in Lightweight Directory Access Protocol (LDAP) 8.3

Called from hook_user_delete ldap_user_user_delete.

Parameters

int $uid: Drupal user ID.

1 call to ExternalAuthenticationHelper::deleteUserIdentifier()
DrupalUserProcessor::drupalUserDeleted in ldap_user/src/Processor/DrupalUserProcessor.php
Handle deletion of Drupal user.

File

ldap_user/src/Helper/ExternalAuthenticationHelper.php, line 35

Class

ExternalAuthenticationHelper
Helper class to wrap external_auth service.

Namespace

Drupal\ldap_user\Helper

Code

public static function deleteUserIdentifier($uid) {
  $authmap = \Drupal::service('externalauth.authmap');
  $authmap
    ->delete($uid);
}