Browse Source

3108210-typeerror-on-drupalblock

8.x-2.x
Rolando Payán Mosqueda 2 years ago
parent
commit
b39fcea741
  1. 2
      src/TwigExtension.php

2
src/TwigExtension.php

@ -486,7 +486,7 @@ class TwigExtension extends AbstractExtension {
$build['content']['#cache']['contexts'][] = 'url'; $build['content']['#cache']['contexts'][] = 'url';
} }
if ($wrapper && !Element::isEmpty($build['content'])) { if ($wrapper && is_array($build['content']) && !Element::isEmpty($build['content'])) {
$build += [ $build += [
'#theme' => 'block', '#theme' => 'block',
'#id' => $configuration['id'] ?? NULL, '#id' => $configuration['id'] ?? NULL,

Loading…
Cancel
Save