function system_post_update_set_cron_logging_setting_to_boolean
Fix system.cron:logging values to boolean.
File
-
core/
modules/ system/ system.post_update.php, line 224
Code
function system_post_update_set_cron_logging_setting_to_boolean() : void {
$config = \Drupal::configFactory()->getEditable('system.cron');
$logging = $config->get('logging');
if (!is_bool($logging)) {
$config->set('logging', (bool) $logging)
->save();
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.