Commit ba3b7f45 authored by malcolm_p's avatar malcolm_p Committed by boshtian

Issue #3035140 by malcolm_p, nace_fric: Blocks plugin calls $block->build() twice

parent 438c2a0c
......@@ -242,12 +242,6 @@ class Blocks extends ContextReactionPluginBase implements ContainerFactoryPlugin
],
];
// Add contextual links to block.
$content = $block->build();
if (isset($content['#contextual_links'])) {
$blockBuild['#contextual_links'] = $content['#contextual_links'];
}
// Add additional contextual link, for editing block configuration.
$blockBuild['#contextual_links']['context_block'] = [
'route_parameters' => [
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment