diff --git a/core/includes/theme.inc b/core/includes/theme.inc index 249f88c..bf4dcf5 100644 --- a/core/includes/theme.inc +++ b/core/includes/theme.inc @@ -1284,7 +1284,7 @@ function template_preprocess_html(&$variables) { ); } else { - $head_title = array('name' => $site_config->get('name')); + $head_title = ['name' => $site_config->get('name')]; if ($site_config->get('slogan')) { $head_title['slogan'] = strip_tags(Xss::filterAdmin($site_config->get('slogan'))); } @@ -1292,11 +1292,11 @@ function template_preprocess_html(&$variables) { $variables['head_title_array'] = $head_title; - $variables['head_title'] = array( + $variables['head_title'] = [ '#type' => 'inline_template', '#template' => '{{ head_title|safe_join(" | ") }}', - '#context' => array('head_title' => $head_title), - ); + '#context' => ['head_title' => $head_title], + ]; // Collect all attachments. This must happen in the preprocess function for // #type => html, to ensure that attachments added in #pre_render callbacks