function gardens_site_data_get_private_files_directory in Acquia Cloud Site Factory Connector 8.2
Same name and namespace in other branches
- 8 acsf_init/lib/sites/g/sites.inc \gardens_site_data_get_private_files_directory()
Returns the location of the private files directory.
The private files directory is supposed to be kept outside of the docroot to make sure that its contents are not directly accessible. This directory should not have a symbolic link in the site's directory.
Parameters
string $db_role: The site's db role.
Return value
string The private files directory location.
1 call to gardens_site_data_get_private_files_directory()
- gardens_site_data_build_data in acsf_init/
lib/ sites/ g/ sites.inc - Returns the data structure for a single site.
File
- acsf_init/
lib/ sites/ g/ sites.inc, line 263 - ACSF helper functions for Drupal's multi-site directory aliasing feature.
Code
function gardens_site_data_get_private_files_directory($db_role) {
return "/mnt/files/{$_ENV['AH_SITE_GROUP']}.{$_ENV['AH_SITE_ENVIRONMENT']}/sites/g/files-private/{$db_role}";
}