You are here

media-library-item--gin-lb.html.twig in Gin Layout Builder 1.0.x

Default theme implementation of a media library item.

This is used when displaying selected media items, either in the field widget or in the "Additional selected media" area when adding new media items in the media library modal dialog.

Available variables:

  • attributes: HTML attributes for the containing element.
  • content: The content of the media library item, plus any additional fields or elements surrounding it.

File

templates/media-library/media-library-item--gin-lb.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Default theme implementation of a media library item.
  5. *
  6. * This is used when displaying selected media items, either in the field
  7. * widget or in the "Additional selected media" area when adding new
  8. * media items in the media library modal dialog.
  9. *
  10. * Available variables:
  11. * - attributes: HTML attributes for the containing element.
  12. * - content: The content of the media library item, plus any additional
  13. * fields or elements surrounding it.
  14. *
  15. * @see template_preprocess_media_library_item()
  16. *
  17. * @ingroup themeable
  18. */
  19. #}
  20. {%
  21. set classes = [
  22. 'media-library-item',
  23. 'media-library-item--grid',
  24. ]
  25. %}
  26. <div{{ glb_classes(attributes.addClass(classes)) }}>
  27. {{ content }}
  28. </div>