{% endif %}
- {{ page.messages }}
-
{{ messages }}
{{ page.content }}
diff --git a/core/modules/system/templates/page.html.twig b/core/modules/system/templates/page.html.twig
index 04972ea..d24e33c 100644
--- a/core/modules/system/templates/page.html.twig
+++ b/core/modules/system/templates/page.html.twig
@@ -32,12 +32,12 @@
* - breadcrumb: The breadcrumb trail for the current page.
*
* Page content (in order of occurrence in the default page.html.twig):
- * - messages: Status and error messages. Should be displayed prominently.
* - title_prefix: Additional output populated by modules, intended to be
* displayed in front of the main title tag that appears in the template.
* - title: The page title, for use in the actual content.
* - title_suffix: Additional output populated by modules, intended to be
* displayed after the main title tag that appears in the template.
+ * - messages: Status and error messages. Should be displayed prominently.
* - tabs: Tabs linking to any sub-pages beneath the current page (e.g., the
* view and edit tabs when displaying a node).
* - action_links: Actions local to the page, such as "Add menu" on the menu
@@ -51,7 +51,6 @@
* Regions:
* - page.header: Items for the header region.
* - page.highlighted: Items for the highlighted content region.
- * - page.messages: Status messages block can be placed in messages region.
* - page.help: Dynamic help text, mostly for admin pages.
* - page.content: The main content of the current page.
* - page.sidebar_first: Items for the first sidebar.
@@ -105,8 +104,6 @@
{{ breadcrumb }}
- {{ page.messages }}
-
{{ messages }}
{{ page.help }}
diff --git a/core/profiles/standard/config/install/block.block.bartik_messages.yml b/core/profiles/standard/config/install/block.block.bartik_messages.yml
deleted file mode 100644
index 8445b6b..0000000
--- a/core/profiles/standard/config/install/block.block.bartik_messages.yml
+++ /dev/null
@@ -1,18 +0,0 @@
-id: bartik_messages
-theme: bartik
-weight: 0
-status: true
-langcode: en
-region: messages
-plugin: system_page_messages_block
-settings:
- visibility: { }
- id: system_page_messages_block
- label: 'Status messages'
- provider: system
- label_display: '0'
-dependencies:
- module:
- - system
- theme:
- - bartik
diff --git a/core/profiles/standard/config/install/block.block.seven_messages.yml b/core/profiles/standard/config/install/block.block.seven_messages.yml
deleted file mode 100644
index 5df065f..0000000
--- a/core/profiles/standard/config/install/block.block.seven_messages.yml
+++ /dev/null
@@ -1,18 +0,0 @@
-id: seven_messages
-theme: seven
-weight: 0
-status: true
-langcode: en
-region: messages
-plugin: system_page_messages_block
-settings:
- visibility: { }
- id: system_page_messages_block
- label: 'Status messages'
- provider: system
- label_display: '0'
-dependencies:
- module:
- - system
- theme:
- - seven
diff --git a/core/themes/bartik/bartik.info.yml b/core/themes/bartik/bartik.info.yml
index 4aad351..bd0bf89 100644
--- a/core/themes/bartik/bartik.info.yml
+++ b/core/themes/bartik/bartik.info.yml
@@ -19,7 +19,6 @@ ckeditor_stylesheets:
- css/ckeditor-iframe.css
regions:
header: Header
- messages: Messages
help: Help
page_top: 'Page top'
page_bottom: 'Page bottom'
diff --git a/core/themes/bartik/templates/maintenance-page.html.twig b/core/themes/bartik/templates/maintenance-page.html.twig
index 2589e88..5de50cc 100644
--- a/core/themes/bartik/templates/maintenance-page.html.twig
+++ b/core/themes/bartik/templates/maintenance-page.html.twig
@@ -34,7 +34,11 @@
{% if title %}
+ {% endif %}
diff --git a/core/themes/bartik/templates/page.html.twig b/core/themes/bartik/templates/page.html.twig
index 54e9c77..8c739bb 100644
--- a/core/themes/bartik/templates/page.html.twig
+++ b/core/themes/bartik/templates/page.html.twig
@@ -44,6 +44,7 @@
* - title: The page title, for use in the actual content.
* - title_suffix: Additional output populated by modules, intended to be
* displayed after the main title tag that appears in the template.
+ * - messages: Status and error messages. Should be displayed prominently.
* - tabs: Tabs linking to any sub-pages beneath the current page (e.g., the
* view and edit tabs when displaying a node).
* - action_links: Actions local to the page, such as "Add menu" on the menu
@@ -56,7 +57,6 @@
*
* Regions:
* - page.header: Items for the header region.
- * - page.messages: Status and error messages. Should be displayed prominently.
* - page.featured: Items for the featured region.
* - page.highlighted: Items for the highlighted content region.
* - page.help: Dynamic help text, mostly for admin pages.
@@ -130,7 +130,11 @@
{% endif %}
- {{ page.messages }}
+ {% if messages %}
+