diff --git a/core/lib/Drupal/Core/Render/BareHtmlPageRenderer.php b/core/lib/Drupal/Core/Render/BareHtmlPageRenderer.php index bf05a3d..c8012c6 100644 --- a/core/lib/Drupal/Core/Render/BareHtmlPageRenderer.php +++ b/core/lib/Drupal/Core/Render/BareHtmlPageRenderer.php @@ -52,7 +52,7 @@ public function renderBarePage(array $content, $title, $page_theme_property, arr // For backwards compatibility. // @todo In Drupal 9, add a $show_messages function parameter. if (!isset($page_additions['#show_messages']) || $page_additions['#show_messages'] === TRUE) { - $html['page']['messages'] = ['#type' => 'status_messages']; + $html['page']['highlighted'] = ['#type' => 'status_messages']; } // We must first render the contents of the html.html.twig template, see