You are here

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.

File

templates/media.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Default theme implementation to present a media entity.
  5. *
  6. * Available variables:
  7. * - name: Name of the media.
  8. * - content: Media content.
  9. *
  10. * @see template_preprocess_media()
  11. *
  12. * @ingroup themeable
  13. */
  14. #}
  15. <article{{ attributes }}>
  16. {% if content %}
  17. {{ content }}
  18. {% endif %}
  19. </article>