public function DrupalUserProcessor::drupalUserDeleted in Lightweight Directory Access Protocol (LDAP) 8.3
Handle deletion of Drupal user.
Parameters
\Drupal\user\UserInterface $account: The Drupal user account.
File
- ldap_user/
src/ Processor/ DrupalUserProcessor.php, line 585
Class
- DrupalUserProcessor
- Handles processing of a user from LDAP to Drupal.
Namespace
Drupal\ldap_user\ProcessorCode
public function drupalUserDeleted(UserInterface $account) {
// Drupal user account is about to be deleted.
$this
->deleteProvisionedLdapEntry($account);
ExternalAuthenticationHelper::deleteUserIdentifier($account
->id());
}