Manipulating Theme Suggestion Priorities I'm adding in some theme suggestions using mytheme_theme_suggestions_alter(), when certain criteria is met. My issue is, for some reason these additional theme suggestions are appearing at the top of the theme suggestions list whilst debugging.

Basically my theme suggestion is ignored, as Drupal believes my additional theme suggestions aren't a priority over the default ones.

&lt;!-- FILE NAME SUGGESTIONS:
   * views-view--venues-grid-rows.html.twig
   x views-view.html.twig
--&gt;


I've tried some 'dirty' solutions, such as trying to clear or reverse the $suggestions[] array without any luck.

My guess is that the hook I'm using is actually running too early, however I'm unable to find a more appropriate one. Something dedicated to hooking into view theme suggestions would be great.

Thanks in advance.
You shouldn't need to add a theme suggestion if you're trying to override the view template for a given view ID. Confusing things is the fact that Views' suggestions don't show in the debug code (see: https://www.drupal.org/node/2118743).

If you add a file named views-view--view-machine-name.html.twig (replacing machine-name, of course) in your theme's templates directory and clear caches, it should pick it up. Note: it has to be templates and not in your theme's root or my_templates or anything else. Drupal is picky that way.

You should not need to worry about module/theme weights as all module alter functions run before theme alter functions.

Finally, if you are add theme suggestions I would recommend using the more targeted hook_theme_suggestions_HOOK_alter. (For views, the HOOK is views-view so your function would look like:

function mytheme_theme_suggestions_views_view_alter(array &amp;$suggestions, array $variables) {
  $suggestions[] = ...
}


Hope that helps.