I created a view with a page display whose path is /admin/content/noun, and whose format is table. I'd like to override the table template with views-view-table--the-view-name--the-display-id.html.twig. The view's path means the view is displayed in the admin theme. Where do I put the template?
Creating a Claro's sub-theme doesn't work. Customizing web/core/themes/claro/templates/classy/views/views-view-table.html.twig works, but that's hacking core.
drush generate theme
for the base themeclaro
and it installed just fine. You might only need to clean up the block layout.drush generate theme
with a base theme of claro creates a almost blank file structure from Claro in my themes directory. Enabling "claro_custom" one time is enough to show me that this is not a direction we would want to go in. I updated hook_theme_registry_alter() from drupal.stackexchange.com/questions/1249/…, but now the table from the view display contains no values, only my customizations which are outside the table. Still trying to get hook_theme() to work./** * Implements hook_theme(). */ function mymodule_theme($existing, $type, $theme, $path) { return [ 'views_view_table__my_view__my_admin_table' => [ 'base hook' => 'views_view_table', ], ]; }