From ccf146ac6a068fe212a310326f7775fd485f6e1c Mon Sep 17 00:00:00 2001 From: gchauhan Date: Thu, 1 Oct 2020 05:24:07 +0000 Subject: [PATCH] Issue #3161956 by tripox, gchauhan: No ID in render array for blocks --- src/TwigExtension.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/TwigExtension.php b/src/TwigExtension.php index 2dba786..0840f67 100644 --- a/src/TwigExtension.php +++ b/src/TwigExtension.php @@ -476,6 +476,7 @@ class TwigExtension extends AbstractExtension { if ($wrapper && !Element::isEmpty($build['content'])) { $build += [ '#theme' => 'block', + '#id' => $configuration['id'] ?? $id, '#attributes' => [], '#contextual_links' => [], '#configuration' => $block_plugin->getConfiguration(),