public static function SemaphoreStorage::get in Lightweight Directory Access Protocol (LDAP) 8.3
Get value.
Parameters
string $action: Action to apply on (e.g. 'sync').
string $identifier: User identifier.
Return value
bool Boolean answer whether identifier present for action.
5 calls to SemaphoreStorage::get()
- DrupalUserProcessor::drupalUserUpdated in ldap_user/
src/ Processor/ DrupalUserProcessor.php - Callback for hook_ENTITY_TYPE_update().
- DrupalUserProcessor::loginLdapEntryProvisioning in ldap_user/
src/ Processor/ DrupalUserProcessor.php - Handle account login with LDAP entry provisioning.
- DrupalUserProcessor::newDrupalUserCreated in ldap_user/
src/ Processor/ DrupalUserProcessor.php - Callback for hook_ENTITY_TYPE_insert().
- DrupalUserProcessor::provisionLdapEntryOnUserUpdateCreateEvent in ldap_user/
src/ Processor/ DrupalUserProcessor.php - Handle the user update/create event with LDAP entry provisioning.
- SemaphoreStorageTests::testPasswordStorage in ldap_user/
tests/ src/ Unit/ SemaphoreStorageTests.php - Tests the password storage.
File
- ldap_user/
src/ Helper/ SemaphoreStorage.php, line 38
Class
- SemaphoreStorage
- Management of the semaphore.
Namespace
Drupal\ldap_user\HelperCode
public static function get($action, $identifier) {
if (isset(self::$accounts[$action], self::$accounts[$action][$identifier])) {
return TRUE;
}
else {
return FALSE;
}
}