Skip to content

Commit

Permalink
fix: [open-y-subprojects#72] Implements a hook_update to add the defa…
Browse files Browse the repository at this point in the history
…ult language parameter to the location view.
  • Loading branch information
andrebonon committed May 3, 2024
1 parent a081280 commit 1bf8f30
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion openy_map.install
Original file line number Diff line number Diff line change
Expand Up @@ -148,9 +148,19 @@ function openy_map_update_8008() {
->save(TRUE);
}

/**
/**
* Update path to icons.
*/
function openy_map_update_8009() {
_openy_map_absolutize_config_icon_urls();
}

/**
* Adds default language condition to the view location.
*/
function openy_map_update_8010() {
$config_path = \Drupal::service('extension.path.resolver')->getPath('module', 'openy_map') . '/config/install';
$source = new FileStorage($config_path);
$config_storage = \Drupal::service('config.storage');
$config_storage->write('views.view.locations', $source->read('views.view.locations'));
}

0 comments on commit 1bf8f30

Please sign in to comment.