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

ISTWCMS-5865: adding update hook to make features happy

parent 028a415f
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
......@@ -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));
}
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