File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 5
5
* Install file for OS2Web Audit module.
6
6
*/
7
7
8
+ use Symfony\Component\Yaml\Yaml;
9
+
8
10
/**
9
11
* Implements hook_update_N().
10
12
*
11
13
* Ensure queue config is installed.
12
14
*/
13
- function os2web_audit_update_103001() {
15
+ function os2web_audit_update_103001(): void {
14
16
$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);
17
19
\Drupal::configFactory()->getEditable($config_id)->setData($data)->save(TRUE);
18
20
}
You can’t perform that action at this time.
0 commit comments