Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
jekuaitk committed Dec 13, 2024
1 parent c0fcf75 commit b35e60a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions os2web_audit.install
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,16 @@
* Install file for OS2Web Audit module.
*/

use Symfony\Component\Yaml\Yaml;

/**
* Implements hook_update_N().
*
* Ensure queue config is installed.
*/
function os2web_audit_update_103001() {
$config_id = 'advancedqueue.advancedqueue_queue.os2web_audit';
$config_path = \Drupal::service('extension.list.module')->getPath('os2web_audit') . '/config/install/' . $config_id .'.yml';
$data = \Symfony\Component\Yaml\Yaml::parseFile($config_path);
$config_path = \Drupal::service('extension.list.module')->getPath('os2web_audit') . '/config/install/' . $config_id . '.yml';
$data = Yaml::parseFile($config_path);
\Drupal::configFactory()->getEditable($config_id)->setData($data)->save(TRUE);
}

0 comments on commit b35e60a

Please sign in to comment.