You are here

function system_post_update_service_advisory_settings in Drupal 9

Add new security advisory retrieval settings.

File

core/modules/system/system.post_update.php, line 196
Post update functions for System.

Code

function system_post_update_service_advisory_settings() {
  $config = \Drupal::configFactory()
    ->getEditable('system.advisories');
  $config
    ->set('interval_hours', 6)
    ->set('enabled', TRUE)
    ->save();
}