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

Theme override to display the system 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.
  • attributes: array of HTML attributes populated by modules, intended to be added to the main container tag of this template.

    • id: A valid HTML ID and guaranteed unique.

File

templates/block/block--system-messages-block.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Theme override to display the system 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. * - attributes: array of HTML attributes populated by modules, intended to
  12. * be added to the main container tag of this template.
  13. * - id: A valid HTML ID and guaranteed unique.
  14. *
  15. * @see template_preprocess_block()
  16. * @see uikit_preprocess_block()
  17. *
  18. * @ingroup uikit_themeable
  19. */
  20. #}
  21. {% if content %}
  22. <div{{ attributes }}>
  23. {{ content }}
  24. </div>
  25. {% endif %}

Add new comment

Filtered HTML

  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <blockquote> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.

Log in