From 15103a67e38454455d0fbbb4b0e61db6762ab3d5 Mon Sep 17 00:00:00 2001 From: Niklan Date: Thu, 8 Oct 2020 11:31:10 +0000 Subject: [PATCH] Issue #3174903 by Niklan, ygoex: Error: Call to a member function getRegion() on null in hook_theme_suggestions_block_alter() --- src/TwigExtension.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/TwigExtension.php b/src/TwigExtension.php index 0840f67..e6d3c38 100644 --- a/src/TwigExtension.php +++ b/src/TwigExtension.php @@ -476,7 +476,7 @@ class TwigExtension extends AbstractExtension { if ($wrapper && !Element::isEmpty($build['content'])) { $build += [ '#theme' => 'block', - '#id' => $configuration['id'] ?? $id, + '#id' => $configuration['id'] ?? NULL, '#attributes' => [], '#contextual_links' => [], '#configuration' => $block_plugin->getConfiguration(),