diff --git a/src/Plugin/Alter/ThemeRegistry.php b/src/Plugin/Alter/ThemeRegistry.php
index 86ae770..4713aec 100644
--- a/src/Plugin/Alter/ThemeRegistry.php
+++ b/src/Plugin/Alter/ThemeRegistry.php
@@ -93,6 +93,7 @@ class ThemeRegistry extends Registry implements AlterInterface {
         $cache[$hook]['path'] = $path;
         $cache[$hook]['type'] = $current_theme ? 'theme' : 'base_theme';
         $cache[$hook]['theme path'] = $theme_path;
+        $cache[$hook]['template'] = str_replace('.html.twig', '', $file->filename);
         if ($incomplete) {
           $cache[$hook]['incomplete preprocess functions'] = TRUE;
         }
