function system_post_update_set_blank_log_url_to_null
Updates system.theme.global:logo.url config if it's still at the default.
File
-
core/
modules/ system/ system.post_update.php, line 159
Code
function system_post_update_set_blank_log_url_to_null() {
$global_theme_settings = \Drupal::configFactory()->getEditable('system.theme.global');
if ($global_theme_settings->get('logo.url') === '') {
$global_theme_settings->set('logo.url', NULL)
->save(TRUE);
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.