From b8ea21be1606a5d3c3f0f836d60e77d718a0c8cc Mon Sep 17 00:00:00 2001 From: beram Date: Sun, 13 Dec 2020 15:01:56 +0000 Subject: [PATCH] Issue #3176561 by beram: drupal_block does not use the plugin cache metadata --- src/TwigExtension.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/TwigExtension.php b/src/TwigExtension.php index e57346e..01b6a99 100644 --- a/src/TwigExtension.php +++ b/src/TwigExtension.php @@ -501,6 +501,7 @@ class TwigExtension extends AbstractExtension { CacheableMetadata::createFromRenderArray($build) ->merge(CacheableMetadata::createFromObject($access)) + ->merge(CacheableMetadata::createFromObject($block_plugin)) ->applyTo($build); return $build;