I have installed devel kint module on my drupal 8. Everything is fine with the module.
But my problem is how should I interpret the output of kint correctly. Especially when I want to render field within file entity.
Here is the scenario:
- I have a form created with YAMLForm in my front. In that form user can upload image.
- User submit the form.
- When I debug data with kint, I can see the url of the image, but I am unnable to display it thru .
Please find below a screenshot of the kint output
I have tryied with the following but no chance :
{{ file_url(data.picture['#value']['#file'].entity['#values'].uri['x-default']) }}
{{ file_url(data.picture.0['#item'].entity.uri.value) }}
{{ file_url(data.picture.entity.fileuri) }}
I've Googled for hours but couldn't find any clues.
Thanks in advance for your help.
{{ content.field_name[0] }}
it will print the url instead of the actual picture as long as you set the field formatter tourl formatter
– No Sssweat Oct 27 '16 at 13:20