media-library-item--small.html.twig in Drupal 9
Same filename in this branch
- 9 core/themes/starterkit_theme/templates/media-library/media-library-item--small.html.twig
- 9 core/themes/classy/templates/media-library/media-library-item--small.html.twig
- 9 core/themes/claro/templates/classy/media-library/media-library-item--small.html.twig
- 9 core/themes/seven/templates/classy/media-library/media-library-item--small.html.twig
- 9 core/themes/bartik/templates/classy/media-library/media-library-item--small.html.twig
- 9 core/profiles/demo_umami/themes/umami/templates/classy/media-library/media-library-item--small.html.twig
Same filename and directory in other branches
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.
1 theme call to media-library-item--small.html.twig
- AddFormBase::buildSelectedItemElement in core/
modules/ media_library/ src/ Form/ AddFormBase.php - Returns a render array for a single pre-selected media item.
File
core/themes/classy/templates/media-library/media-library-item--small.html.twigView source
- {#
- /**
- * @file
- * 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.
- *
- * @see seven_preprocess_media_library_item__small()
- * @see seven_preprocess_media_library_item__widget()
- * @see template_preprocess_media_library_item()
- *
- * @ingroup themeable
- */
- #}
- {%
- set classes = [
- 'media-library-item',
- 'media-library-item--grid',
- 'media-library-item--small',
- ]
- %}
- <div{{ attributes.addClass(classes) }}>
- {{ content }}
- </div>