From 9573cc3a2ac4537a444cd935de0e7ad4a7ee866b Mon Sep 17 00:00:00 2001
From: Eric Bremner <ebremner@uwaterloo.ca>
Date: Thu, 13 Oct 2022 15:28:06 -0400
Subject: [PATCH] ISTWCMS-5865: adding update hook to make features happy

---
 uw_cfg_common.install | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/uw_cfg_common.install b/uw_cfg_common.install
index bca7ef78..415955ed 100644
--- a/uw_cfg_common.install
+++ b/uw_cfg_common.install
@@ -447,3 +447,14 @@ function uw_cfg_common_update_9104(&$sandbox) {
   $service->removeMissingBlocksFromUnsaved();
   $service->removeMissingBlocksFromSaved();
 }
+
+/**
+ * Feature revert for workflows.
+ */
+function uw_cfg_common_update_9105(&$sandbox) {
+  $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));
+}
-- 
GitLab