summaryrefslogtreecommitdiffstats
path: root/core/themes/stable/templates/content/media.html.twig
blob: cecaac8b198a718bed90c5109d2bd4e441a498cc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
{#
/**
 * @file
 * Theme override to display a media item.
 *
 * Available variables:
 * - name: Name of the media.
 * - content: Media content.
 *
 * Note that we print {{ title_suffix }} even though the title is not included.
 * This is intentional, once contextual links are embedded in the "title_suffix"
 * variable. See #2775131 for more information on the background about this.
 *
 * @see template_preprocess_media()
 *
 * @ingroup themeable
 */
#}
<article{{ attributes }}>
  {{ title_suffix }}
  {% if content %}
    {{ content }}
  {% endif %}
</article>