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
Theme override for an image field widget.
Available variables:
- main_items: Main render elements of the image widget: file name, upload input, upload and remove buttons and hidden inputs.
- data: Other render elements of the image widget like preview, alt or title.
- display: A flag indicating whether the display field is visible.
- attributes: HTML attributes for the containing element.
- multiple: Whether this widget is the part of a multi-value file widget or not.
- upload: Whether the file upload input is displayed or not.
- has_value: true if the widget already contains a file.
- has_meta: true when at least one of the alt or title inputs is enabled and visible.
File
core/themes/claro/templates/content-edit/image-widget.html.twigView source
- {#
- /**
- * @file
- * Theme override for an image field widget.
- *
- * Available variables:
- * - main_items: Main render elements of the image widget:
- * file name, upload input, upload and remove buttons and hidden inputs.
- * - data: Other render elements of the image widget like preview, alt or title.
- * - display: A flag indicating whether the display field is visible.
- * - attributes: HTML attributes for the containing element.
- * - multiple: Whether this widget is the part of a multi-value file widget or
- * not.
- * - upload: Whether the file upload input is displayed or not.
- * - has_value: true if the widget already contains a file.
- * - has_meta: true when at least one of the alt or title inputs is enabled and
- * visible.
- *
- * @see template_preprocess_image_widget()
- * @see claro_preprocess_image_widget()
- */
- #}
-
- {% extends '@claro/content-edit/file-managed-file.html.twig' %}
-
- {% set attributes = attributes.addClass('form-managed-file--image') %}