I have a Site with a Twig Template. I have an multiple entity references which I want to loop trough and print out the name, description of each entity.
In my template I'm using the following code to loop through entities.
{% for item in node.field_workers %}
{{ item.entity.field_name.value }}
{% endfor %}
This loops trough all my entities but won't output any value whatsoever. I tried using kint() to debug the process. When I try kint(item.entity) it shows me the following structure:
protected fields --> field_name
When I try kint(item.entity.fields) it redirects me to 'drupal/install' page when I try to load the page.
What am I doing wrong?