diff --git a/core/lib/Drupal/Core/Render/Element/HtmlTag.php b/core/lib/Drupal/Core/Render/Element/HtmlTag.php index 912f8c0..ae00db1 100644 --- a/core/lib/Drupal/Core/Render/Element/HtmlTag.php +++ b/core/lib/Drupal/Core/Render/Element/HtmlTag.php @@ -94,13 +94,9 @@ public static function preRenderHtmlTag($element) { $markup = SafeMarkup::set($markup); } if (!empty($element['#noscript'])) { - $element['#markup'] = array( - '#type' => 'inline_template', - '#inline_template' => '', - '#context' => array( - 'markup' => $markup, - ), - ); + $template = ''; + $variables = array('markup' => $markup); + $element['#markup'] = \Drupal::service('twig')->renderInline($template, $variables); } else { $element['#markup'] = $markup;