diff --git a/core/lib/Drupal/Core/Theme/Registry.php b/core/lib/Drupal/Core/Theme/Registry.php index 4417615..929fe49 100644 --- a/core/lib/Drupal/Core/Theme/Registry.php +++ b/core/lib/Drupal/Core/Theme/Registry.php @@ -514,14 +514,14 @@ protected function processExtension(array &$cache, $name, $type, $theme, $path) $result[$hook]['template lineage'] = $cache[$hook]['template lineage']; } else { - $result[$hook]['template lineage'] = array(); + $result[$hook]['template lineage'] = []; } if (isset($result[$hook]['template'])) { - $result[$hook]['template lineage'][] = array( + $result[$hook]['template lineage'][] = [ 'extension' => $theme, 'template' => $result[$hook]['template'], 'path' => $result[$hook]['path'], - ); + ]; } // If the default keys are not set, use the default values registered