Mercurial > hg > cmmr2012-drupal-site
comparison core/lib/Drupal/Core/Theme/Registry.php @ 5:12f9dff5fda9 tip
Update to Drupal core 8.7.1
author | Chris Cannam |
---|---|
date | Thu, 09 May 2019 15:34:47 +0100 |
parents | c75dbcec494b |
children |
comparison
equal
deleted
inserted
replaced
4:a9cd425dd02b | 5:12f9dff5fda9 |
---|---|
340 } | 340 } |
341 | 341 |
342 // Process each base theme. | 342 // Process each base theme. |
343 // Ensure that we start with the root of the parents, so that both CSS files | 343 // Ensure that we start with the root of the parents, so that both CSS files |
344 // and preprocess functions comes first. | 344 // and preprocess functions comes first. |
345 foreach (array_reverse($this->theme->getBaseThemes()) as $base) { | 345 foreach (array_reverse($this->theme->getBaseThemeExtensions()) as $base) { |
346 // If the base theme uses a theme engine, process its hooks. | 346 // If the base theme uses a theme engine, process its hooks. |
347 $base_path = $base->getPath(); | 347 $base_path = $base->getPath(); |
348 if ($this->theme->getEngine()) { | 348 if ($this->theme->getEngine()) { |
349 $this->processExtension($cache, $this->theme->getEngine(), 'base_theme_engine', $base->getName(), $base_path); | 349 $this->processExtension($cache, $this->theme->getEngine(), 'base_theme_engine', $base->getName(), $base_path); |
350 } | 350 } |
682 */ | 682 */ |
683 protected function postProcessExtension(array &$cache, ActiveTheme $theme) { | 683 protected function postProcessExtension(array &$cache, ActiveTheme $theme) { |
684 // Gather prefixes. This will be used to limit the found functions to the | 684 // Gather prefixes. This will be used to limit the found functions to the |
685 // expected naming conventions. | 685 // expected naming conventions. |
686 $prefixes = array_keys((array) $this->moduleHandler->getModuleList()); | 686 $prefixes = array_keys((array) $this->moduleHandler->getModuleList()); |
687 foreach (array_reverse($theme->getBaseThemes()) as $base) { | 687 foreach (array_reverse($theme->getBaseThemeExtensions()) as $base) { |
688 $prefixes[] = $base->getName(); | 688 $prefixes[] = $base->getName(); |
689 } | 689 } |
690 if ($theme->getEngine()) { | 690 if ($theme->getEngine()) { |
691 $prefixes[] = $theme->getEngine() . '_engine'; | 691 $prefixes[] = $theme->getEngine() . '_engine'; |
692 } | 692 } |