diff --git a/uw_cfg_common.install b/uw_cfg_common.install index bca7ef78ff261f180875831c7f77256a56791108..415955ed3678be51e918a3a6fbff55670585de22 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)); +}