Version 1
[yaffs-website] / web / core / modules / image / templates / image-widget.html.twig
1 {#
2 /**
3  * @file
4  * Default theme implementation for an image field widget.
5  *
6  * Available variables:
7  * - attributes: HTML attributes for the containing element.
8  * - data: Render elements of the image widget.
9  *
10  * @see template_preprocess_image_widget()
11  *
12  * @ingroup themeable
13  */
14 #}
15 <div{{ attributes }}>
16   {{ data.preview }}
17   {# Render widget data without the image preview that was output already. #}
18   {{ data|without('preview') }}
19 </div>