image-widget.html.twig in Drupal 10
Same filename in this branch
- 10 core/themes/seven/templates/image-widget.html.twig
- 10 core/modules/image/templates/image-widget.html.twig
- 10 core/themes/starterkit_theme/templates/content-edit/image-widget.html.twig
- 10 core/themes/classy/templates/content-edit/image-widget.html.twig
- 10 core/themes/claro/templates/content-edit/image-widget.html.twig
- 10 core/themes/stable9/templates/content-edit/image-widget.html.twig
- 10 core/themes/stable/templates/content-edit/image-widget.html.twig
- 10 core/themes/bartik/templates/classy/content-edit/image-widget.html.twig
- 10 core/profiles/demo_umami/themes/umami/templates/classy/content-edit/image-widget.html.twig
Same filename and directory in other branches
Default theme implementation for an image field widget.
Available variables:
- attributes: HTML attributes for the containing element.
- data: Render elements of the image widget.
See also
File
core/modules/image/templates/image-widget.html.twigView source
- {#
- /**
- * @file
- * Default theme implementation 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()
- *
- * @ingroup themeable
- */
- #}
- <div{{ attributes }}>
- {{ data.preview }}
- {# Render widget data without the image preview that was output already. #}
- {{ data|without('preview') }}
- </div>