Browse Source

Issue #3174903 by Niklan, ygoex: Error: Call to a member function getRegion() on null in hook_theme_suggestions_block_alter()

merge-requests/4/head 8.x-2.8
Niklan 4 years ago committed by Chi
parent
commit
15103a67e3
  1. 2
      src/TwigExtension.php

2
src/TwigExtension.php

@ -476,7 +476,7 @@ class TwigExtension extends AbstractExtension {
if ($wrapper && !Element::isEmpty($build['content'])) { if ($wrapper && !Element::isEmpty($build['content'])) {
$build += [ $build += [
'#theme' => 'block', '#theme' => 'block',
'#id' => $configuration['id'] ?? $id, '#id' => $configuration['id'] ?? NULL,
'#attributes' => [], '#attributes' => [],
'#contextual_links' => [], '#contextual_links' => [],
'#configuration' => $block_plugin->getConfiguration(), '#configuration' => $block_plugin->getConfiguration(),

Loading…
Cancel
Save