Browse Source

Issue #3045120 by eiriksm: drupal_block does not use the plugin cache metadata

merge-requests/4/head
eiriksm 6 years ago committed by Chi
parent
commit
32e89c93a7
  1. 5
      src/TwigExtension.php

5
src/TwigExtension.php

@ -129,6 +129,11 @@ class TwigExtension extends \Twig_Extension {
'#base_plugin_id' => $block_plugin->getBaseId(), '#base_plugin_id' => $block_plugin->getBaseId(),
'#derivative_plugin_id' => $block_plugin->getDerivativeId(), '#derivative_plugin_id' => $block_plugin->getDerivativeId(),
'content' => $content, 'content' => $content,
'#cache' => [
'contexts' => $block_plugin->getCacheContexts(),
'tags' => $block_plugin->getCacheTags(),
'max-age' => $block_plugin->getCacheMaxAge(),
],
]; ];
} }
else { else {

Loading…
Cancel
Save