Browse Source

3108210-typeerror-on-drupalblock

8.x-2.x
Rolando Payán Mosqueda 3 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';
}
if ($wrapper && !Element::isEmpty($build['content'])) {
if ($wrapper && is_array($build['content']) && !Element::isEmpty($build['content'])) {
$build += [
'#theme' => 'block',
'#id' => $configuration['id'] ?? NULL,

Loading…
Cancel
Save