Skip to content

Commit 51c4df3

Browse files
committed
Cleanup
1 parent c0fcf75 commit 51c4df3

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

os2web_audit.install

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,16 @@
55
* Install file for OS2Web Audit module.
66
*/
77

8+
use Symfony\Component\Yaml\Yaml;
9+
810
/**
911
* Implements hook_update_N().
1012
*
1113
* Ensure queue config is installed.
1214
*/
13-
function os2web_audit_update_103001() {
15+
function os2web_audit_update_103001(): void {
1416
$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+
$config_path = \Drupal::service('extension.list.module')->getPath('os2web_audit') . '/config/install/' . $config_id . '.yml';
18+
$data = Yaml::parseFile($config_path);
1719
\Drupal::configFactory()->getEditable($config_id)->setData($data)->save(TRUE);
1820
}

0 commit comments

Comments
 (0)