diff --git a/core/includes/theme.inc b/core/includes/theme.inc index dce273f..69625af 100644 --- a/core/includes/theme.inc +++ b/core/includes/theme.inc @@ -1352,14 +1352,12 @@ function template_preprocess_html(&$variables) { } $variables['head_title_array'] = $head_title; - $output = ''; - $build = array( + + $variables['head_title'] = array( '#type' => 'inline_template', '#template' => '{{ head_title|safe_join(" | ") }}', '#context' => array('head_title' => $head_title), ); - $output = \Drupal::service('renderer')->render($build); - $variables['head_title'] = $output; // Collect all attachments. This must happen in the preprocess function for // #type => html, to ensure that attachments added in #pre_render callbacks