From 78a492f228be55a619ea085e424e8a0289e1ac7a Mon Sep 17 00:00:00 2001 From: Rajeshreeputra Date: Tue, 3 Oct 2023 15:41:20 +0530 Subject: [PATCH] ACMS-1202: Update admin theme from Acquia Claro to Acquia CMS Gin. --- modules/acquia_cms_common/acquia_cms_common.install | 10 +++++----- .../src/Service/PureHeadlessModeInstallHandler.php | 6 +++--- .../acquia_cms_tour/src/Services/StarterKitService.php | 8 ++++---- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/modules/acquia_cms_common/acquia_cms_common.install b/modules/acquia_cms_common/acquia_cms_common.install index 66dec023b..6a09ea0b5 100644 --- a/modules/acquia_cms_common/acquia_cms_common.install +++ b/modules/acquia_cms_common/acquia_cms_common.install @@ -27,16 +27,16 @@ function acquia_cms_common_install($is_syncing) { 'view media', ]); - // Enable acquia_claro theme. + // Enable acquia_cms_gin theme. $themesList = \Drupal::service('extension.list.theme')->getList(); $themesInstall = ["olivero"]; - if (isset($themesList['acquia_claro'])) { - $themesInstall[] = "acquia_claro"; + if (isset($themesList['acquia_cms_gin'])) { + $themesInstall[] = "acquia_cms_gin"; } \Drupal::service('theme_installer')->install($themesInstall); \Drupal::configFactory()->getEditable('system.theme')->set('default', 'olivero')->save(); - if (in_array("acquia_claro", $themesInstall)) { - \Drupal::configFactory()->getEditable('system.theme')->set('admin', "acquia_claro")->save(); + if (in_array("acquia_cms_gin", $themesInstall)) { + \Drupal::configFactory()->getEditable('system.theme')->set('admin', "acquia_cms_gin")->save(); } // Re-write the content and media view on module install, diff --git a/modules/acquia_cms_headless/modules/acquia_cms_headless_ui/src/Service/PureHeadlessModeInstallHandler.php b/modules/acquia_cms_headless/modules/acquia_cms_headless_ui/src/Service/PureHeadlessModeInstallHandler.php index 3462af161..8ebb4f606 100644 --- a/modules/acquia_cms_headless/modules/acquia_cms_headless_ui/src/Service/PureHeadlessModeInstallHandler.php +++ b/modules/acquia_cms_headless/modules/acquia_cms_headless_ui/src/Service/PureHeadlessModeInstallHandler.php @@ -194,11 +194,11 @@ public function deleteHeadlessUiPaths() { */ public function updateHeadlessUiConfig(bool $isEnabled = TRUE) { if ($isEnabled) { - // Reset default theme to acquia_claro. - if ($this->themeHandler->themeExists('acquia_claro')) { + // Reset default theme to acquia_cms_gin. + if ($this->themeHandler->themeExists('acquia_cms_gin')) { $this->configFactory ->getEditable('system.theme') - ->set('default', 'acquia_claro') + ->set('default', 'acquia_cms_gin') ->save(); } diff --git a/modules/acquia_cms_tour/src/Services/StarterKitService.php b/modules/acquia_cms_tour/src/Services/StarterKitService.php index f7f54264f..c9148d974 100644 --- a/modules/acquia_cms_tour/src/Services/StarterKitService.php +++ b/modules/acquia_cms_tour/src/Services/StarterKitService.php @@ -155,7 +155,7 @@ public function getModulesAndThemes(string $starter_kit, string $demo_question = 'acquia_cms_tour', ]; $enableThemes = [ - 'admin' => 'acquia_claro', + 'admin' => 'acquia_cms_gin', 'default' => 'cohesion_theme', ]; break; @@ -167,7 +167,7 @@ public function getModulesAndThemes(string $starter_kit, string $demo_question = 'acquia_cms_tour', ]; $enableThemes = [ - 'admin' => 'acquia_claro', + 'admin' => 'acquia_cms_gin', 'default' => 'olivero', ]; break; @@ -180,14 +180,14 @@ public function getModulesAndThemes(string $starter_kit, string $demo_question = 'acquia_cms_tour', ]; $enableThemes = [ - 'admin' => 'acquia_claro', + 'admin' => 'acquia_cms_gin', 'default' => 'olivero', ]; break; default: $enableThemes = [ - 'admin' => 'acquia_claro', + 'admin' => 'acquia_cms_gin', 'default' => 'olivero', ]; $enableModules = [