filter-caption.html.twig in Drupal 8
Same filename in this branch
- 8 core/modules/filter/templates/filter-caption.html.twig
- 8 core/themes/classy/templates/content-edit/filter-caption.html.twig
- 8 core/themes/stable/templates/content-edit/filter-caption.html.twig
- 8 core/themes/claro/templates/classy/content-edit/filter-caption.html.twig
- 8 core/themes/seven/templates/classy/content-edit/filter-caption.html.twig
- 8 core/themes/bartik/templates/classy/content-edit/filter-caption.html.twig
- 8 core/profiles/demo_umami/themes/umami/templates/classy/content-edit/filter-caption.html.twig
Same filename and directory in other branches
Theme override for a filter caption.
Returns HTML for a captioned image, audio, video or other tag.
Available variables
- string node: The complete HTML tag whose contents are being captioned.
- string tag: The name of the HTML tag whose contents are being captioned.
- string caption: The caption text.
- string classes: The classes of the captioned HTML tag.
1 theme call to filter-caption.html.twig
- FilterCaption::process in core/
modules/ filter/ src/ Plugin/ Filter/ FilterCaption.php - Performs the filter processing.
File
core/themes/claro/templates/classy/content-edit/filter-caption.html.twigView source
- {#
- /**
- * @file
- * Theme override for a filter caption.
- *
- * Returns HTML for a captioned image, audio, video or other tag.
- *
- * Available variables
- * - string node: The complete HTML tag whose contents are being captioned.
- * - string tag: The name of the HTML tag whose contents are being captioned.
- * - string caption: The caption text.
- * - string classes: The classes of the captioned HTML tag.
- */
- #}
- <figure role="group" class="caption caption-{{ tag }}{%- if classes %} {{ classes }}{%- endif %}">
- {{ node }}
- <figcaption>{{ caption }}</figcaption>
- </figure>