You are here

admin-block.html.twig in Zircon Profile 8.0

Default theme implementation for an administrative block.

Available variables:

  • block: An array of information about the block, including:

    • show: A flag indicating if the block should be displayed.
    • title: The block title.
    • content: (optional) The content of the block.
    • description: (optional) A description of the block. (Description should only be output if content is not available).

File

core/modules/system/templates/admin-block.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Default theme implementation for an administrative block.
  5. *
  6. * Available variables:
  7. * - block: An array of information about the block, including:
  8. * - show: A flag indicating if the block should be displayed.
  9. * - title: The block title.
  10. * - content: (optional) The content of the block.
  11. * - description: (optional) A description of the block.
  12. * (Description should only be output if content is not available).
  13. *
  14. * @ingroup themeable
  15. */
  16. #}
  17. <div class="panel">
  18. {% if block.title %}
  19. <h3 class="panel__title">{{ block.title }}</h3>
  20. {% endif %}
  21. {% if block.content %}
  22. <div class="panel__content">{{ block.content }}</div>
  23. {% elseif block.description %}
  24. <div class="panel__description">{{ block.description }}</div>
  25. {% endif %}
  26. </div>

Related topics