diff --git a/core/includes/theme.inc b/core/includes/theme.inc index 17041ac..69d2b57 100644 --- a/core/includes/theme.inc +++ b/core/includes/theme.inc @@ -1946,6 +1946,7 @@ function drupal_pre_render_page(array $element) { function template_preprocess_page(&$variables) { /** @var $page \Drupal\Core\Page\HtmlPage */ $page = $variables['page']['#page']; + $language_interface = \Drupal::languageManager()->getCurrentLanguage(); $variables['html_attributes'] = $page->getHtmlAttributes(); $variables['attributes'] = $page->getBodyAttributes();