I use the Views module to list the content of a custom entity, using the Table format.
I'd like to add the myClass CSS class to each row where a given field is equal to zero.
How can I achieve this?
Edit
I found out that I could use 'Rewrite results' (Overriding the output of a field with custom text) with twig.
For example:
{% if nombreproduits == '0' %}
{{ '99/99/9999' }}
{% else %}
{{ datedistribution }}
{% endif %}
How could I use that to add a class to the corresponding row?