protected function SocialAuthUserManager::registrationBlocked in Social Auth 8
Checks if user registration is blocked in Drupal account settings.
Return value
bool True if registration is blocked False if registration is not blocked
1 call to SocialAuthUserManager::registrationBlocked()
- SocialAuthUserManager::createUser in src/
SocialAuthUserManager.php - Create a new user account.
File
- src/
SocialAuthUserManager.php, line 390
Class
- SocialAuthUserManager
- Contains all logic that is related to Drupal user management.
Namespace
Drupal\social_authCode
protected function registrationBlocked() {
// Check if Drupal account registration settings is Administrators only.
if ($this->configFactory
->get('user.settings')
->get('register') == 'admin_only') {
return TRUE;
}
return FALSE;
}