I am using "views-views-unformatted--view-machine-name.html.twig" twig template.

I want to show value of row content like folowing:

{{file_url(row.content['#row']._entity.field machine name.entity.uri.value)}} 

I'm using syntax: row.content['#row']._entity.field_machine_name

enter image description here

Then, I want to get src of image:


It's running.

But I don't understand how to access entity property.

Any help on this?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.