You are here

media-gallery.html.twig in Media Gallery 8

Default theme implementation to present a media gallery entity.

This template is used when viewing a registered media gallery's page, e.g., /admin/content/media-gallery)/123. 123 being the media gallery's ID.

Available variables:

  • content: A list of content items. Use 'content' to print all content, or print a subset such as 'content.title'.
  • attributes: HTML attributes for the container element.

File

templates/media-gallery.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Default theme implementation to present a media gallery entity.
  5. *
  6. * This template is used when viewing a registered media gallery's page,
  7. * e.g., /admin/content/media-gallery)/123. 123 being the media gallery's ID.
  8. *
  9. * Available variables:
  10. * - content: A list of content items. Use 'content' to print all content, or
  11. * print a subset such as 'content.title'.
  12. * - attributes: HTML attributes for the container element.
  13. *
  14. * @see template_preprocess_media_gallery()
  15. */
  16. #}
  17. {{ attach_library('media_gallery/media_gallery') }}
  18. <article{{ attributes }}>
  19. {% if content %}
  20. {{- content -}}
  21. {% endif %}
  22. </article>