block--system-messages-block.html.twig

Same filename in this branch
  1. 9 core/themes/stable9/templates/block/block--system-messages-block.html.twig
  2. 9 core/modules/system/templates/block--system-messages-block.html.twig
Same filename in other branches
  1. 8.9.x core/themes/stable/templates/block/block--system-messages-block.html.twig
  2. 8.9.x core/modules/system/templates/block--system-messages-block.html.twig
  3. 10 core/themes/stable9/templates/block/block--system-messages-block.html.twig
  4. 10 core/modules/system/templates/block--system-messages-block.html.twig
  5. 11.x core/themes/stable9/templates/block/block--system-messages-block.html.twig
  6. 11.x core/modules/system/templates/block--system-messages-block.html.twig

Theme override 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/themes/stable/templates/block/block--system-messages-block.html.twig

View source
  1. {#
  2. /**
  3. * @file
  4. * Theme override 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. #}
  13. {{ content }}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.