function system_post_update_service_advisory_settings

Add new security advisory retrieval settings.

File

core/modules/system/system.post_update.php, line 198

Code

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.