I'm looking for an option to override the image-formatter.html.twig
template in my own theme. But in the HTML page output (twig debug is set to true
) there's no option listed to override the formatter template. The only thing I see is:
<!-- THEME DEBUG -->
<!-- THEME HOOK: 'image_formatter' -->
<!-- BEGIN OUTPUT from 'core/modules/image/templates/image-formatter.html.twig' -->
I need to place a rel
attribute for the link which surrounds the image.
I found a solution which uses the option that you can write your own field formatter in your own module. But that seems to be too complex for this simple task.
rel
to all image formatter output it's a simple template override.field-formatter--node--mynode--my-field.html.twig
?