diff --git a/core/lib/Drupal/Core/Theme/Registry.php b/core/lib/Drupal/Core/Theme/Registry.php index 094780a10e..a562b20dba 100644 --- a/core/lib/Drupal/Core/Theme/Registry.php +++ b/core/lib/Drupal/Core/Theme/Registry.php @@ -470,11 +470,13 @@ protected function processExtension(array &$cache, $name, $type, $theme, $path) } if (isset($cache[$hook]['includes'])) { + throw new \Exception(); $result[$hook]['includes'] = $cache[$hook]['includes']; } // Load the includes, as they may contain preprocess functions. if (isset($info['includes'])) { + throw new \Exception(); foreach ($info['includes'] as $include_file) { include_once $this->root . '/' . $include_file; }