PENDING

https://www.drupal.org/project/media_entity_image/issues/2856093

1
2
3
4
5
6
7
8
{# The field name in the content is "field_image2" #}
{% for key, image in content.field_image2  %}
    {% set media = image.entity %}
    {# The field name in the referenced entity is "field_image_file #}
    {% set file = media.field_image_file.entity | merge({'#image_style': 'thumbnail'}) %}
    {% set uri = file_url(file.uri.value)  %}
    <img src="{{ uri }}" alt="{{ media.name.value }}" />
{% endfor %}