Skip to content

Instantly share code, notes, and snippets.

@vijaycs85
Created September 30, 2015 16:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vijaycs85/4da5e59a14b9ddf46757 to your computer and use it in GitHub Desktop.
Save vijaycs85/4da5e59a14b9ddf46757 to your computer and use it in GitHub Desktop.
diff --git a/core/lib/Drupal/Core/Config/TypedConfigManager.php b/core/lib/Drupal/Core/Config/TypedConfigManager.php
index 6ccf8fd..6415e6b 100644
--- a/core/lib/Drupal/Core/Config/TypedConfigManager.php
+++ b/core/lib/Drupal/Core/Config/TypedConfigManager.php
@@ -153,15 +153,15 @@ public function getDefinition($base_plugin_id, $exception_on_invalid = TRUE, $va
// If the sub type has a bracket then lets look that up as well.
if (isset($value) && strpos($definition['type'], ']')) {
$sub_type = $this->replaceName($definition['type'], $value);
- $merge = $definitions[$sub_type];
- $definition = NestedArray::mergeDeepArray(array($merge, $definition), TRUE);
+ $sub_type_merge = $this->getDefinition($sub_type);
+ $definition = NestedArray::mergeDeepArray(array($sub_type_merge, $definition), TRUE);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment