function syslog_update_8400 in Drupal 8
Convert syslog.settings.facility to an integer.
File
- core/
modules/ syslog/ syslog.install, line 20 - Install, update and uninstall functions for the syslog module.
Code
function syslog_update_8400() {
$config = \Drupal::configFactory()
->getEditable('syslog.settings');
$facility = (int) $config
->get('facility');
$config
->set('facility', $facility)
->save(TRUE);
}