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.