image-widget.html.twig
Same filename in this branch
- 9 core/profiles/demo_umami/themes/umami/templates/classy/content-edit/image-widget.html.twig
- 9 core/themes/stable9/templates/content-edit/image-widget.html.twig
- 9 core/themes/seven/templates/image-widget.html.twig
- 9 core/themes/claro/templates/content-edit/image-widget.html.twig
- 9 core/themes/stable/templates/content-edit/image-widget.html.twig
- 9 core/themes/starterkit_theme/templates/content-edit/image-widget.html.twig
- 9 core/themes/classy/templates/content-edit/image-widget.html.twig
- 9 core/modules/image/templates/image-widget.html.twig
Same filename in other branches
- 8.9.x core/profiles/demo_umami/themes/umami/templates/classy/content-edit/image-widget.html.twig
- 8.9.x core/themes/seven/templates/image-widget.html.twig
- 8.9.x core/themes/claro/templates/content-edit/image-widget.html.twig
- 8.9.x core/themes/bartik/templates/classy/content-edit/image-widget.html.twig
- 8.9.x core/themes/stable/templates/content-edit/image-widget.html.twig
- 8.9.x core/themes/classy/templates/content-edit/image-widget.html.twig
- 8.9.x core/modules/image/templates/image-widget.html.twig
- 10 core/profiles/demo_umami/themes/umami/templates/classy/content-edit/image-widget.html.twig
- 10 core/themes/stable9/templates/content-edit/image-widget.html.twig
- 10 core/themes/claro/templates/content-edit/image-widget.html.twig
- 10 core/themes/starterkit_theme/templates/content-edit/image-widget.html.twig
- 10 core/modules/image/templates/image-widget.html.twig
- 11.x core/profiles/demo_umami/themes/umami/templates/classy/content-edit/image-widget.html.twig
- 11.x core/themes/stable9/templates/content-edit/image-widget.html.twig
- 11.x core/themes/claro/templates/content-edit/image-widget.html.twig
- 11.x core/themes/starterkit_theme/templates/content-edit/image-widget.html.twig
- 11.x core/modules/image/templates/image-widget.html.twig
Theme override for an image field widget.
Available variables:
- attributes: HTML attributes for the containing element.
- data: Render elements of the image widget.
See also
template_preprocess_image_widget()
File
-
core/
themes/ bartik/ templates/ classy/ content-edit/ image-widget.html.twig
View source
- {#
- /**
- * @file
- * Theme override for an image field widget.
- *
- * Available variables:
- * - attributes: HTML attributes for the containing element.
- * - data: Render elements of the image widget.
- *
- * @see template_preprocess_image_widget()
- */
- #}
- <div{{ attributes }}>
- {% if data.preview %}
- <div class="image-preview">
- {{ data.preview }}
- </div>
- {% endif %}
- <div class="image-widget-data">
- {# Render widget data without the image preview that was output already. #}
- {{ data|without('preview') }}
- </div>
- </div>
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.