protected function SocialAuthUserManager::getPictureDirectory in Social Auth 8
Returns picture directory if site supports the user picture feature.
Return value
string|bool Directory for user pictures if site supports user picture feature. False otherwise.
1 call to SocialAuthUserManager::getPictureDirectory()
- SocialAuthUserManager::downloadProfilePic in src/
SocialAuthUserManager.php - Downloads the profile picture to Drupal filesystem.
File
- src/
SocialAuthUserManager.php, line 655
Class
- SocialAuthUserManager
- Contains all logic that is related to Drupal user management.
Namespace
Drupal\social_authCode
protected function getPictureDirectory() {
$field_definitions = $this->entityFieldManager
->getFieldDefinitions('user', 'user');
if (isset($field_definitions['user_picture'])) {
return $field_definitions['user_picture']
->getSetting('file_directory');
}
return FALSE;
}