Browse Source

Issue #2958571 by elgordogrande, Prashant.c, Fabianx: DrupalBlock cache error when empty

merge-requests/4/head
Prashant.c 6 years ago committed by Chi
parent
commit
40d9540c33
  1. 2
      src/TwigExtension.php

2
src/TwigExtension.php

@ -137,7 +137,7 @@ class TwigExtension extends \Twig_Extension {
// Preserve cache metadata of empty blocks. // Preserve cache metadata of empty blocks.
$build = [ $build = [
'#markup' => '', '#markup' => '',
'#cache' => $content['#cache'], '#cache' => isset($content['#cache']) ? $content['#cache'] : [],
]; ];
} }

Loading…
Cancel
Save