drupal/core/modules/image/templates/image-widget.html.twig

26 lines
533 B
Plaintext
Raw Normal View History

{#
/**
* @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 }}>
{% if data.preview %}
<div>
{{ data.preview }}
</div>
{% endif %}
<div>
{# Render widget data without the image preview that was output already. #}
{{ data|without('preview') }}
</div>
</div>