Template suggestion does not work for table in a custom block / Might there be a way around? I created a block on pages of the &quot;Author&quot; content type that lists all the articles the author has contributed to in a table (via contextual filter). Now I want to customize the table layout. I already did this before in a similar case, where I show the table on a page, not in a block. There I get file name suggestions for the template inside HTML comments like that:
&lt;!-- THEME DEBUG --&gt;
&lt;!-- THEME HOOK: 'views_view_table__articles' --&gt;
&lt;!-- FILE NAME SUGGESTIONS:
   x views-view-table--articles.html.twig
   x views-view-table--articles.html.twig
   * views-view-table.html.twig
--&gt;
&lt;!-- BEGIN OUTPUT from 'themes/MYTHEMEFOLDER/templates/views/views-view-table--articles.html.twig' --&gt;

But in my latest case, the table in a block, I only get this suggestion:
&lt;!-- THEME DEBUG --&gt;
&lt;!-- THEME HOOK: 'views_view_table' --&gt;
&lt;!-- BEGIN OUTPUT from 'themes/MYPARENTTHEMEFOLDER/templates/views/views-view-table.html.twig' --&gt;

Note that it outputs the template of my parent theme, not my actual theme.
I did some research and found this issue, which currently is not resolved and the proposed patch not included inside the Drupal code. Is this the reason I cannot create a custom template or is there something else I can do?
If not, how would I create that table of referenced articles on the author's page?
Since Drupal doesn't suggest certain template file names I had to create a custom module which adds the template name for my needs. I had to implement the hook_theme_suggestions_HOOK() for my table view and add an appropriate name to the suggestions array.
&lt;?php

use Drupal\views\ViewExecutable;

/**
 * Implements hook_theme_suggestions_HOOK().
 */
function custom_template_suggestions_theme_suggestions_views_view_table_alter(array &amp;$suggestions, array $variables) {
  if (isset($variables['view']) &amp;&amp; $variables['view'] instanceof ViewExecutable) {
    $id = $variables['view']-&gt;current_display;

    if (!in_array('views_view_table__' . $id, $suggestions)) {
      $suggestions[] = 'views_view_table__' . $id;
    }
  }
}