protected function UserManager::userPictureEnabled in Social Auth 8.2
Same name and namespace in other branches
- 3.x src/User/UserManager.php \Drupal\social_auth\User\UserManager::userPictureEnabled()
Returns whether this site supports the default user picture feature.
Return value
bool True if user pictures are enabled False otherwise
1 call to UserManager::userPictureEnabled()
- UserManager::setProfilePic in src/
User/ UserManager.php - Downloads and sets user profile picture.
File
- src/
User/ UserManager.php, line 522
Class
- UserManager
- Manages database related tasks.
Namespace
Drupal\social_auth\UserCode
protected function userPictureEnabled() {
$field_definitions = $this->entityFieldManager
->getFieldDefinitions('user', 'user');
return isset($field_definitions['user_picture']);
}