From b39fcea74197f66279ac600c5e1610d06733af4b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rolando=20Pay=C3=A1n=20Mosqueda?= Date: Wed, 8 Jun 2022 10:14:27 -0500 Subject: [PATCH] 3108210-typeerror-on-drupalblock --- src/TwigExtension.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/TwigExtension.php b/src/TwigExtension.php index 4ccbfc0..fd54657 100644 --- a/src/TwigExtension.php +++ b/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,