diff --git a/uw_cfg_common.install b/uw_cfg_common.install index 7ce88d6d19654769da8750093169901738297d0b..bca7ef78ff261f180875831c7f77256a56791108 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();