1 system.install system_update_1073()

Set config_sync_clear_staging on existing sites, if not already set.

Related topics

File

core/modules/system/system.install, line 3267
Install, update and uninstall functions for the system module.

Code

function system_update_1073() {
  $config = config('system.core');
  if ($config->get('config_sync_clear_staging') == NULL) {
    $config->set('config_sync_clear_staging', 1);
    $config->save();
  }
}