Commit ae5cc6f8 authored by Dries's avatar Dries

Issue #2067915 by eatings, kjay, bserem: Restore html attributes to maintenance-page.html.twig.

parent 37949fe3
......@@ -2820,6 +2820,13 @@ function template_preprocess_maintenance_page(&$variables) {
$theme_data = list_themes();
$regions = $theme_data[$theme]->info['regions'];
// Initializes attributes which are specific to the html element.
$variables['html_attributes'] = new Attribute;
// HTML element attributes.
$variables['html_attributes']['lang'] = $language_interface->id;
$variables['html_attributes']['dir'] = $language_interface->direction ? 'rtl' : 'ltr';
// Add favicon
if (theme_get_setting('features.favicon')) {
$favicon = theme_get_setting('favicon.url');
......
......@@ -13,7 +13,7 @@
*/
#}
<!DOCTYPE html>
<html>
<html{{ html_attributes }}>
<head>
{{ head }}
<title>{{ head_title }}</title>
......
......@@ -11,7 +11,7 @@
*/
#}
<!DOCTYPE html>
<html lang="{{ language.langcode }}" dir="{{ language.dir }}">
<html{{ html_attributes }}>
<head>
{{ head }}
<title>{{ head_title }}</title>
......
......@@ -12,7 +12,7 @@
*/
#}
<!DOCTYPE html>
<html lang="{{ language.langcode }}" dir="{{ language.dir }}">
<html{{ html_attributes }}>
<head>
<title>{{ head_title }}</title>
{{ head }}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment