diff -u b/core/includes/theme.inc b/core/includes/theme.inc --- b/core/includes/theme.inc +++ b/core/includes/theme.inc @@ -147,7 +147,6 @@ 'function' => $match, $arg_name => $info[$arg_name], 'base hook' => $hook, - 'incomplete preprocess functions' => TRUE, ); } } @@ -263,7 +262,6 @@ 'path' => dirname($files[$match]->uri), $arg_name => $info[$arg_name], 'base hook' => $hook, - 'incomplete preprocess functions' => TRUE, ); } } diff -u b/core/lib/Drupal/Core/Theme/Registry.php b/core/lib/Drupal/Core/Theme/Registry.php --- b/core/lib/Drupal/Core/Theme/Registry.php +++ b/core/lib/Drupal/Core/Theme/Registry.php @@ -455,6 +455,12 @@ $result[$hook]['type'] = $type; $result[$hook]['theme path'] = $path; + // If theme hook has base hook mark its preprocess functions always + // incomplete to inherit base hooks preprocess functions. + if (!empty($result[$hook]['base hook'])) { + $result[$hook]['incomplete preprocess functions'] = TRUE; + } + if (isset($cache[$hook]['includes'])) { $result[$hook]['includes'] = $cache[$hook]['includes']; }