You are here

protected function UserManager::systemRetrieveFile in Social Auth 3.x

Same name and namespace in other branches
  1. 8.2 src/User/UserManager.php \Drupal\social_auth\User\UserManager::systemRetrieveFile()

Wrapper for system_retrieve_file.

We need to wrap the legacy procedural Drupal API functions so that we are not using them directly in our own methods. This way we can unit test our own methods.

See also

system_retrieve_file

1 call to UserManager::systemRetrieveFile()
UserManager::downloadProfilePic in src/User/UserManager.php
Downloads the profile picture to Drupal filesystem.

File

src/User/UserManager.php, line 571

Class

UserManager
Manages database related tasks.

Namespace

Drupal\social_auth\User

Code

protected function systemRetrieveFile($url, $destination, $managed, $replace) {
  return system_retrieve_file($url, $destination, $managed, $replace);
}