diff --git a/core/includes/theme.inc b/core/includes/theme.inc index 3e74521..757b61c 100644 --- a/core/includes/theme.inc +++ b/core/includes/theme.inc @@ -1237,7 +1237,7 @@ function template_preprocess_html(&$variables) { // Construct page title. if (isset($variables['page']['#title']) && is_array($variables['page']['#title'])) { // Do an early render if the title is a render array. - $variables['page']['#title'] = (string) \Drupal::service('renderer')->render($variables['page']['#title']); + $variables['page']['#title'] = \Drupal::service('renderer')->render($variables['page']['#title']); } if (!empty($variables['page']['#title'])) { $head_title = array(