Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Drupal 8 twig, get image url
{% set the_image = item.content['#field_collection_item'].field_featurette_image %}
<img src="{{ file_url(the_image.entity.uri.value) }}" alt="{{ the_image.alt }}" title="{{ the_image.title }}">
<img src="{{file_url(node.field_hotel_image.entity.uri.value)}}" alt="3242">
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment