I would like to add a div for every comment on my field--comment.html.twig
On the template I've a "comments" variable, but if I cycle in this way, I obtain error (Fatal error: "0" is an invalid render array key in /var/www/html/core/lib/Drupal/Core/Render/Element.php on line 97):
{% for comment in comments %}
{{ comment }}
{% endfor %}
I would like to add "odd/even" class to comments.
[EDIT] If I use a cycle like this:
{% for key,value in comments %}
{{ dump(key) }}
{% endfor %}
keys are: #sorted, #pre_render, 'pager', '106', '107' (where 106 and 107 are comment ids)