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 51c4df3
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 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() {
function os2web_audit_update_103001(): void {
$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 51c4df3

Please sign in to comment.