media.html.twig in Media entity 8
Default theme implementation to present a media entity.
Available variables:
- name: Name of the media.
- content: Media content.
See also
File
templates/media.html.twigView source
- {#
- /**
- * @file
- * Default theme implementation to present a media entity.
- *
- * Available variables:
- * - name: Name of the media.
- * - content: Media content.
- *
- * @see template_preprocess_media()
- *
- * @ingroup themeable
- */
- #}
- <article{{ attributes }}>
- {% if content %}
- {{ content }}
- {% endif %}
- </article>