block--system-messages-block.html.twig
Same filename in this branch
Same filename in other branches
- 9 core/themes/stable9/templates/block/block--system-messages-block.html.twig
- 9 core/themes/stable/templates/block/block--system-messages-block.html.twig
- 9 core/modules/system/templates/block--system-messages-block.html.twig
- 8.9.x core/themes/stable/templates/block/block--system-messages-block.html.twig
- 8.9.x core/modules/system/templates/block--system-messages-block.html.twig
- 10 core/themes/stable9/templates/block/block--system-messages-block.html.twig
- 10 core/modules/system/templates/block--system-messages-block.html.twig
Default theme implementation for the messages block.
Removes wrapper elements from block so that empty block does not appear when there are no messages.
Available variables:
- content: The content of this block.
File
-
core/
profiles/ demo_umami/ themes/ umami/ templates/ classy/ block/ block--system-messages-block.html.twig
View source
- {#
- /**
- * @file
- * Default theme implementation for the messages block.
- *
- * Removes wrapper elements from block so that empty block does not appear when
- * there are no messages.
- *
- * Available variables:
- * - content: The content of this block.
- *
- * @ingroup themeable
- */
- #}
- {{ content }}
-
- {#
- The Umami theme is for demonstration only.
-
- Umami uses a web component for rendering messages. The component is
- "<drupal-umami-messages>".
-
- This implementation is a trial only and should not be used on production
- sites.
-
- @see https://www.drupal.org/project/drupal/issues/3476471
- @see https://developer.mozilla.org/en-US/docs/Web/API/Web_components
- #}
-
- <template id="umami-messages-template">
- <h2 part="heading">
- <slot name="title"></slot>
- </h2>
- <div part="content">
- <div part="icon"></div>
- <slot name="content"></slot>
- </div>
- </template>
Related topics
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.