private function DrupalUserProcessor::newAccountRequest in Lightweight Directory Access Protocol (LDAP) 8.3
Determine if this a user registration process.
Parameters
\Drupal\user\UserInterface $account: Drupal user account.
Return value
bool It is a registration process.
1 call to DrupalUserProcessor::newAccountRequest()
- DrupalUserProcessor::newDrupalUserCreated in ldap_user/
src/ Processor/ DrupalUserProcessor.php - Callback for hook_ENTITY_TYPE_insert().
File
- ldap_user/
src/ Processor/ DrupalUserProcessor.php, line 1054
Class
- DrupalUserProcessor
- Handles processing of a user from LDAP to Drupal.
Namespace
Drupal\ldap_user\ProcessorCode
private function newAccountRequest(UserInterface $account) {
if (\Drupal::currentUser()
->isAnonymous() && $account
->isNew()) {
return TRUE;
}
else {
return FALSE;
}
}