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.
1 theme call to html-formatter.html.twig
- HtmlFieldFormatter::viewElements in src/
Plugin/ Field/ FieldFormatter/ HtmlFieldFormatter.php - Builds a renderable array for a field value.
File
templates/html-formatter.html.twigView source
- {#
- /**
- * @file
- * 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.
- *
- * @ingroup themeable
- */
- #}
- {% if tag %}
- <{{ tag }}{{ attributes }}>
- {% endif %}
- {{ value }}
- {% if tag %}
- </{{ tag }}>
- {% endif %}