Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / web / core / themes / classy / templates / content-edit / filter-caption.html.twig
1 {#
2 /**
3  * @file
4  * Theme override for a filter caption.
5  *
6  * Returns HTML for a captioned image, audio, video or other tag.
7  *
8  * Available variables
9  * - string node: The complete HTML tag whose contents are being captioned.
10  * - string tag: The name of the HTML tag whose contents are being captioned.
11  * - string caption: The caption text.
12  * - string classes: The classes of the captioned HTML tag.
13  */
14 #}
15 <figure role="group" class="caption caption-{{ tag }}{%- if classes %} {{ classes }}{%- endif %}">
16 {{ node }}
17 <figcaption>{{ caption }}</figcaption>
18 </figure>