Same filename in this branch
  1. 10 core/modules/system/templates/block--system-messages-block.html.twig
  2. 10 core/themes/stable9/templates/block/block--system-messages-block.html.twig
Same filename and directory in other branches
  1. 8.9.x core/modules/system/templates/block--system-messages-block.html.twig
  2. 9 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/modules/system/templates/block--system-messages-block.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Default theme implementation for the messages block.
  5. *
  6. * Removes wrapper elements from block so that empty block does not appear when
  7. * there are no messages.
  8. *
  9. * Available variables:
  10. * - content: The content of this block.
  11. *
  12. * @ingroup themeable
  13. */
  14. #}
  15. {{ content }}

Related topics