Skip to content

Commit

Permalink
added update hook to initialize default config value
Browse files Browse the repository at this point in the history
  • Loading branch information
zedmonds96 committed Jan 15, 2025
1 parent ea56e33 commit 26ea677
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions modules/metastore/modules/metastore_admin/metastore_admin.install
Original file line number Diff line number Diff line change
Expand Up @@ -123,3 +123,14 @@ function metastore_admin_update_8012() {

drupal_flush_all_caches();
}

/**
* Set the default value for the redirect_to_datasets setting.
*/
function metastore_admin_update_8013() {
\Drupal::configFactory()->getEditable('metastore_admin.settings')
->set('redirect_to_datasets', TRUE)
->save();

drupal_flush_all_caches();
}

0 comments on commit 26ea677

Please sign in to comment.