private function DrupalUserProcessor::updateExistingAccountByPersistentUid in Lightweight Directory Access Protocol (LDAP) 8.4
Same name and namespace in other branches
- 8.3 ldap_user/src/Processor/DrupalUserProcessor.php \Drupal\ldap_user\Processor\DrupalUserProcessor::updateExistingAccountByPersistentUid()
Update Drupal user from PUID.
Parameters
\Drupal\user\UserInterface $accountFromPuid: The account from the PUID.
1 call to DrupalUserProcessor::updateExistingAccountByPersistentUid()
- DrupalUserProcessor::createDrupalUserFromLdapEntry in ldap_user/
src/ Processor/ DrupalUserProcessor.php - Provision a Drupal user account.
File
- ldap_user/
src/ Processor/ DrupalUserProcessor.php, line 489
Class
- DrupalUserProcessor
- Handles processing of a user from LDAP to Drupal.
Namespace
Drupal\ldap_user\ProcessorCode
private function updateExistingAccountByPersistentUid(UserInterface $accountFromPuid) : void {
$this->account = $accountFromPuid;
$this->externalAuth
->save($this->account, 'ldap_user', $this->account
->getAccountName());
$this
->syncToDrupalAccount();
$this
->saveAccount();
}