Hello.
I'm trying to build an override twig for a field collection in D8. My field collection has Text and Image Fields. I'm not able to print out the image through.
Is there any way to get the path of an image that is set in an image field of a field collection?
Either in the image field array or somewhere else?

Specifically here's my current twig statement:

To get the field_product_image:
{{ item.content['#field_collection_item'].field_product_image.getValue()[0] }}

Attached is my kint output for the field collection
Thanks.

Paul L.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

paul.lefebvre07 created an issue. See original summary.

paul.lefebvre07’s picture

Issue summary: View changes
paul.lefebvre07’s picture

Assigned: paul.lefebvre07 » Unassigned
dramblys’s picture

jmuzz’s picture