Skip to content

Commit 4a32ce7

Browse files
committed
Ensure queue is in installed upon upgrade
1 parent 4db7b6f commit 4a32ce7

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

os2web_audit.install

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<?php
2+
3+
/**
4+
* @file
5+
* Install file for OS2Web Audit module.
6+
*/
7+
8+
/**
9+
* Implements hook_update_N().
10+
*
11+
* Ensure queue config is installed.
12+
*/
13+
function os2web_audit_update_103001() {
14+
$config_id = 'advancedqueue.advancedqueue_queue.os2web_audit';
15+
$config_path = \Drupal::service('extension.list.module')->getPath('os2web_audit') . '/config/install/' . $config_id .'.yml';
16+
$data = \Symfony\Component\Yaml\Yaml::parseFile($config_path);
17+
\Drupal::configFactory()->getEditable($config_id)->setData($data)->save(TRUE);
18+
}

0 commit comments

Comments
 (0)