You are here

html-formatter.html.twig in HTML Formatter 8

Default theme implementation for html formatter.

Available variables:

  • tag: The HTML tag.
  • value: The output.
  • 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/html-formatter.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Default theme implementation for html formatter.
  5. *
  6. * Available variables:
  7. * - tag: The HTML tag.
  8. * - value: The output.
  9. * - attributes: array of HTML attributes populated by modules, intended to
  10. * be added to the main container tag of this template.
  11. * - id: A valid HTML ID and guaranteed unique.
  12. *
  13. * @ingroup themeable
  14. */
  15. #}
  16. {% if tag %}
  17. <{{ tag }}{{ attributes }}>
  18. {% endif %}
  19. {{ value }}
  20. {% if tag %}
  21. </{{ tag }}>
  22. {% endif %}