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