How to get the field_image path with Twig in Drupal 8

In your Views:

1.Add your image filed to the Advanced/Relationship

2.Then in the filed section, change to File Group, you can see URI field,add it, and make sure you check “Display the file download URI”

3.Add your new field in the twig template: {{ fields.uri.content }}

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s