The input in file field.html.twig is normally like this:
{% for item in items %}
<div{{ attributes }}>{{ item.content }}</div>
{% endfor %}
And you get the output in HTML like this:
<div><img src="path/to/image/image.png" alt="my wonderful image"></div>
But I want to add a class to img-tag. How do I receive the following output:
<div><img class="img-fluid" src="path/to/image/image.png" alt="my wonderful image"></div>
I am looking for a solution like this (solution in another post), but it is not working. Can anybody help?