From 5b877409f49660815b6579f2fc0d6b92e1189529 Mon Sep 17 00:00:00 2001 From: Stanislav Kutasevits Date: Fri, 29 Sep 2023 12:20:24 +0300 Subject: [PATCH] OS-61 - dependency on cache_control_override, enabling on install --- composer.json | 3 ++- os2forms_forloeb_profile.install | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/composer.json b/composer.json index c80dec7..3793772 100644 --- a/composer.json +++ b/composer.json @@ -21,7 +21,8 @@ "drupal/core": "^9", "drush/drush": "^11.4", "os2forms/os2forms": "^3.6", - "os2web/os2web_simplesaml": "8.x-dev" + "os2web/os2web_simplesaml": "8.x-dev", + "drupal/cache_control_override": "^1.1|^2.0" }, "require-dev": { "drupal/coder": "^8.3", diff --git a/os2forms_forloeb_profile.install b/os2forms_forloeb_profile.install index 9a3d6a5..97cd91c 100644 --- a/os2forms_forloeb_profile.install +++ b/os2forms_forloeb_profile.install @@ -41,6 +41,9 @@ function os2forms_forloeb_profile_install() { ->set('default', 'gin') ->set('admin', 'gin') ->save(); + + // Enable recommended (but optional) modules. + \Drupal::service('module_installer')->install(['cache_control_override']); } /**