Mercurial > hg > isophonics-drupal-site
comparison core/lib/Drupal/Core/Theme/ThemeManager.php @ 18:af1871eacc83
Update to Drupal core 8.7.1
author | Chris Cannam |
---|---|
date | Thu, 09 May 2019 15:33:08 +0100 |
parents | 4c8ae668cc8c |
children |
comparison
equal
deleted
inserted
replaced
17:129ea1e6d783 | 18:af1871eacc83 |
---|---|
425 if (empty($extra_types)) { | 425 if (empty($extra_types)) { |
426 unset($extra_types); | 426 unset($extra_types); |
427 } | 427 } |
428 } | 428 } |
429 | 429 |
430 $theme_keys = []; | 430 $theme_keys = array_keys($theme->getBaseThemeExtensions()); |
431 foreach ($theme->getBaseThemes() as $base) { | |
432 $theme_keys[] = $base->getName(); | |
433 } | |
434 | |
435 $theme_keys[] = $theme->getName(); | 431 $theme_keys[] = $theme->getName(); |
436 $functions = []; | 432 $functions = []; |
437 foreach ($theme_keys as $theme_key) { | 433 foreach ($theme_keys as $theme_key) { |
438 $function = $theme_key . '_' . $type . '_alter'; | 434 $function = $theme_key . '_' . $type . '_alter'; |
439 if (function_exists($function)) { | 435 if (function_exists($function)) { |