Skip to content

Commit

Permalink
ACMS-1944: Review feedback changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
rajeshreeputra authored and vishalkhode1 committed Sep 11, 2023
1 parent 98f2927 commit 4eb4083
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions acquia_cms.profile
Original file line number Diff line number Diff line change
Expand Up @@ -185,15 +185,11 @@ function acquia_cms_modules_installed(array $modules) : void {

if ($module_handler->moduleExists('cohesion_sync')) {
$sitestudio_version = \Drupal::service('extension.list.module')->getExtensionInfo('cohesion')['version'];
if (version_compare($sitestudio_version, '8.x-7.1.2') >= 0) {
$module_handler->invoke('cohesion_sync', 'modules_installed', [
$modules,
FALSE,
]);
}
else {
$module_handler->invoke('cohesion_sync', 'modules_installed', [$modules]);
}
$arguments = (version_compare($sitestudio_version, '8.x-7.1.2') >= 0) ? [
$modules,
FALSE,
] : [$modules];
$module_handler->invoke('cohesion_sync', 'modules_installed', $arguments);
}
}

Expand Down

0 comments on commit 4eb4083

Please sign in to comment.