Skip to content
Snippets Groups Projects
Commit 492e126f authored by Eric Bremner's avatar Eric Bremner Committed by Igor Biki
Browse files

ISTWCMS-5865: adding workflows config to install hook so that features is happy

parent 25c2d536
No related branches found
No related tags found
3 merge requests!279ISTWCMS-5865: adding workflows config to install hook so that features is happy,!274Draft: ISTWCMS-5551: fixing office hours display,!260Feature/istwcms 5668 a5kulkar rename references to publications
...@@ -19,6 +19,16 @@ use Symfony\Component\Yaml\Yaml; ...@@ -19,6 +19,16 @@ use Symfony\Component\Yaml\Yaml;
*/ */
function uw_cfg_common_install() { 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. // Get the role ids for UW roles.
$uw_rids = UwRoles::getUwRoleIds(); $uw_rids = UwRoles::getUwRoleIds();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment