How can I have a comment template (comment.html.twig
) per comment type?
The Twig Template naming conventions documentation explains how I can get a comment template per node content type (comment--node-[type].html.twig
), but it doesn’t mention comment types.
I have a node content type with multiple comment fields (one for each comment type), so filtering by node content type doesn’t help me.
comment--[comment-field-name].html.twig