You are here

media.html.twig in Drupal 10

Theme override to display a media item.

Available variables:

  • name: Name of the media.
  • content: Media content.

File

core/themes/stable/templates/content/media.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Theme override to display a media item.
  5. *
  6. * Available variables:
  7. * - name: Name of the media.
  8. * - content: Media content.
  9. *
  10. * @see template_preprocess_media()
  11. */
  12. #}
  13. <article{{ attributes }}>
  14. {{ title_suffix.contextual_links }}
  15. {% if content %}
  16. {{ content }}
  17. {% endif %}
  18. </article>