Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
project
context
Commits
ba3b7f45
Commit
ba3b7f45
authored
Apr 15, 2020
by
malcolm_p
Committed by
boshtian
Apr 15, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue
#3035140
by malcolm_p, nace_fric: Blocks plugin calls $block->build() twice
parent
438c2a0c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
6 deletions
+0
-6
src/Plugin/ContextReaction/Blocks.php
src/Plugin/ContextReaction/Blocks.php
+0
-6
No files found.
src/Plugin/ContextReaction/Blocks.php
View file @
ba3b7f45
...
...
@@ -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'
=>
[
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment