function sitewide_alert_update_8001 in Sitewide Alert 8
Set the new automated refresh config option to keep the current behavior.
File
- ./
sitewide_alert.install, line 21 - Install, update and uninstall functions for the sitewide_alert module.
Code
function sitewide_alert_update_8001(&$sandbox) {
$config_factory = \Drupal::configFactory();
$config_factory
->getEditable('sitewide_alert.settings')
->set('automatic_refresh', 1)
->save();
}