Skip to content

Commit

Permalink
ACMS-3508: Update config.settings.php with drs override config dir.
Browse files Browse the repository at this point in the history
  • Loading branch information
apathak18 authored Jan 18, 2024
1 parent 5c06103 commit 68d768c
Showing 1 changed file with 13 additions and 7 deletions.
20 changes: 13 additions & 7 deletions settings/config.settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,21 +20,27 @@
* $settings['config_sync_directory'] = $dir . "/config/$site_dir" in
* settings.php, and we will not overwrite it.
*/

// phpcs:ignore
if (!isset($drs_override_config_directories)) {
$drs_override_config_directories = TRUE;
}

/**
* Site path.
*
* @var string $site_path
* This is always set and exposed by the Drupal Kernel.
*/
// phpcs:ignore
$site_name = EnvironmentDetector::getSiteName($site_path);
// phpcs:ignore
// Config sync settings.
$settings['config_sync_directory'] = "../config/" . $site_name;
// Site Studio sync settings.
$settings['site_studio_sync'] = "../sitestudio/" . $site_name;
$site_name = EnvironmentDetector::getSiteName($site_path);

// phpcs:ignore
if ($drs_override_config_directories) {
// Config sync settings.
$settings['config_sync_directory'] = "../config/" . $site_name;
// Site Studio sync settings.
$settings['site_studio_sync'] = "../sitestudio/" . $site_name;
}

$split_filename_prefix = 'config_split.config_split';

Expand Down

0 comments on commit 68d768c

Please sign in to comment.