diff --git a/core/lib/Drupal/Core/Render/BubbleableMetadata.php b/core/lib/Drupal/Core/Render/BubbleableMetadata.php index c201f61..0e41072 100644 --- a/core/lib/Drupal/Core/Render/BubbleableMetadata.php +++ b/core/lib/Drupal/Core/Render/BubbleableMetadata.php @@ -48,17 +48,8 @@ public function merge(CacheableMetadata $other) { else { $result->attached = static::mergeAttachments($this->attached, $other->attached); } - - if (empty($this->postRenderCache)) { - $result->postRenderCache = $other->postRenderCache; - } - elseif (empty($other->postRenderCache)) { - $result->postRenderCache = $this->postRenderCache; - } - else { - $result->postRenderCache = NestedArray::mergeDeep($this->postRenderCache, $other->postRenderCache); - } } + return $result; }