diff --git a/core/lib/Drupal/Core/Theme/Registry.php b/core/lib/Drupal/Core/Theme/Registry.php index 43e8a07..9ea1e82 100644 --- a/core/lib/Drupal/Core/Theme/Registry.php +++ b/core/lib/Drupal/Core/Theme/Registry.php @@ -456,7 +456,7 @@ protected function processExtension(&$cache, $name, $type, $theme, $path) { // Prepend the current theming path when none is set. This is required // for the default theme engine to know where the template lives. - if (isset($info['template']) && !isset($info['path'])) { + if (isset($result[$hook]['template']) && !isset($info['path'])) { $result[$hook]['path'] = $path . '/templates'; }