protected function UserManager::saveUser in Social Auth 3.x
Same name and namespace in other branches
- 8.2 src/User/UserManager.php \Drupal\social_auth\User\UserManager::saveUser()
Saves the Drupal user entity.
Return value
bool True if picture was successfully set. False otherwise.
1 call to UserManager::saveUser()
- UserManager::createNewUser in src/
User/ UserManager.php - Creates a new user.
File
- src/
User/ UserManager.php, line 336
Class
- UserManager
- Manages database related tasks.
Namespace
Drupal\social_auth\UserCode
protected function saveUser(UserInterface $drupal_user) {
try {
$drupal_user
->save();
return TRUE;
} catch (EntityStorageException $ex) {
$this->loggerFactory
->get($this
->getPluginId())
->error('Failed to save user. Exception: @message', [
'@message' => $ex
->getMessage(),
]);
return FALSE;
}
}