I have created a foreach loop in my node template in Drupal 8 where values of the field collection are being printed as 1 and 2. Instead I want the content of the field collection which includes an image and two text fields to be printed here. How do I achieve that? Complete code would be helpful. My code:
{% for member in content.field_robot['#items'].getValue() %}
<div class="robot-member">
{{member.value}}
</div>
{% endfor %}
I have no experience of playing in the .theme file but can follow basic instructions.