Merge pull request #144 from Sommerregen/bugfix/get-nested-default-plugin-configurations

Fix to merge nested page options with default plugin configurations
This commit is contained in:
Andy Miller
2015-02-18 21:59:49 -07:00

View File

@@ -140,7 +140,7 @@ class Plugin implements EventSubscriberInterface
// Get default plugin configurations and retrieve page header configuration
if (isset($page->header()->$class_name)) {
$header = array_merge($defaults, $page->header()->$class_name);
$header = array_replace_recursive($defaults, $page->header()->$class_name);
} else {
$header = $defaults;
}