protected function SimpleFbConnectUserManager::filePrepareDirectory in Simple FB Connect 8.3
Same name and namespace in other branches
- 8.2 src/SimpleFbConnectUserManager.php \Drupal\simple_fb_connect\SimpleFbConnectUserManager::filePrepareDirectory()
Wrapper for file_prepare_directory.
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
file_prepare_directory
1 call to SimpleFbConnectUserManager::filePrepareDirectory()
- SimpleFbConnectUserManager::downloadProfilePic in src/
SimpleFbConnectUserManager.php - Downloads the profile picture to Drupal filesystem.
1 method overrides SimpleFbConnectUserManager::filePrepareDirectory()
- TestSimpleFbConnectUserManager::filePrepareDirectory in tests/
src/ Unit/ TestSimpleFbConnectUserManager.php - Overrides filePrepareDirectory.
File
- src/
SimpleFbConnectUserManager.php, line 567
Class
- SimpleFbConnectUserManager
- Contains all logic that is related to Drupal user management.
Namespace
Drupal\simple_fb_connectCode
protected function filePrepareDirectory(&$directory, $options) {
return file_prepare_directory($directory, $options);
}