From 492e126fa128450a3d60b0203f8390fb446b44a0 Mon Sep 17 00:00:00 2001 From: Eric Bremner <ebremner@uwaterloo.ca> Date: Thu, 6 Oct 2022 10:47:24 -0400 Subject: [PATCH] ISTWCMS-5865: adding workflows config to install hook so that features is happy --- uw_cfg_common.install | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/uw_cfg_common.install b/uw_cfg_common.install index 7ce88d6d..bca7ef78 100644 --- a/uw_cfg_common.install +++ b/uw_cfg_common.install @@ -19,6 +19,16 @@ use Symfony\Component\Yaml\Yaml; */ function uw_cfg_common_install() { + // ISTWCMS-5865: this the attempt to fix features for our build. + // Moving the actual installing of workflows to here, so that + // we can include workflows as a dependency in our modules and + // that it will allow new site installs. + $name = 'workflows.workflow.uw_workflow'; + $path = \Drupal::service('extension.list.module')->getPath('uw_cfg_common') . '/config/custom/'; + $source = new FileStorage($path); + $active_storage = \Drupal::service('config.storage'); + $active_storage->write($name, $source->read($name)); + // Get the role ids for UW roles. $uw_rids = UwRoles::getUwRoleIds(); -- GitLab