I have written a D8 sub-theme. Base theme is bootstrap, but I don't think it really matters.
My base theme defines a very specific template field--node--field-image--article.html.twig that I would like to ignore, as if it did not exist. I would like to fallback to the next best match template, whatever that is.
I have already considered the following options, but they aren't entirely satisfactory.
- Delete the unwanted template from the base theme. However I then have to remember to delete the file again every time I update the base theme.
- Override the unwanted template with an identically named file in my sub-theme. In that file %include the preferred template. However this requires me to name a specific preferred template. I would rather let Drupal decide what template would be the best match excluding the unwanted one.
- I have discovered the function hook_theme_suggestions_alter. However I'm not sure that it solves my problem because I don't want to lose the ability to use any given suggestion in general - just that one very specific file.
I guess I will end up going with option 1) if I can't find a better idea.