Skip to content
Snippets Groups Projects
Commit ba3b7f45 authored by Malcolm Poindexter's avatar Malcolm Poindexter Committed by Bostjan Kovac
Browse files

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

parent 438c2a0c
No related branches found
No related tags found
No related merge requests found
......@@ -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' => [
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment