You are here

function gardens_site_data_get_filepath in Acquia Cloud Site Factory Connector 8.2

Same name and namespace in other branches
  1. 8 acsf_init/lib/sites/g/sites.inc \gardens_site_data_get_filepath()

Returns the location of the sites data json file.

We rely on the existence of the files-private directory that's created in /mnt/files next to the public files directory.

Return value

string The json file location.

6 calls to gardens_site_data_get_filepath()
000-acquia_required_scrub.php in acsf_init/lib/cloud_hooks/common/post-db-copy/000-acquia_required_scrub.php
Scrubs a site after its database has been copied.
acsf.settings.php in acsf_init/lib/sites/default/acsf.settings.php
ACSF business logic to catch mistyped domains arriving to the infrastructure.
gardens_site_data_load_file in acsf_init/lib/sites/g/sites.inc
Returns the sites data structure.
gardens_site_data_refresh_domains in acsf_init/lib/sites/g/sites.inc
Returns data for the specified domains directly from the JSON file.
gardens_site_data_sites_json_issue_type_get in acsf_init/lib/sites/g/sites.inc
Re-checks for a fatal issue with the sites.json file.

... See full list

2 string references to 'gardens_site_data_get_filepath'
acsf.settings.php in acsf_init/lib/sites/default/acsf.settings.php
ACSF business logic to catch mistyped domains arriving to the infrastructure.
sites.php in acsf_init/lib/sites/sites.php
Drupal multi-site configuration file for sites on Acquia Cloud Site Factory.

File

acsf_init/lib/sites/g/sites.inc, line 244
ACSF helper functions for Drupal's multi-site directory aliasing feature.

Code

function gardens_site_data_get_filepath() {

  // Use the "real" path here rather than the canonical hosting path
  // to minimize symlink traversal.
  return "/mnt/files/{$_ENV['AH_SITE_GROUP']}.{$_ENV['AH_SITE_ENVIRONMENT']}/files-private/sites.json";
}