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
830f1623
Commit
830f1623
authored
Dec 28, 2017
by
rsmylski
Committed by
boshtian
Dec 28, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue
#2897045
by rsmylski, matjaz_zavski: Add block_view_alter() call to Block Reaction
parent
482b8af6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
src/Plugin/ContextReaction/Blocks.php
src/Plugin/ContextReaction/Blocks.php
+5
-0
No files found.
src/Plugin/ContextReaction/Blocks.php
View file @
830f1623
...
...
@@ -228,6 +228,11 @@ class Blocks extends ContextReactionPluginBase implements ContainerFactoryPlugin
$blockBuild
[
'#weight'
]
=
$configuration
[
'weight'
];
}
// Invoke block_view_alter().
// If an alter hook wants to modify the block contents, it can append
// another #pre_render hook.
\
Drupal
::
moduleHandler
()
->
alter
([
'block_view'
,
'block_view_'
.
$block
->
getBaseId
()],
$blockBuild
,
$block
);
$build
[
$region
][
$block_placement_key
]
=
$blockBuild
;
// After merging with blocks from Block layout, we want to sort all of
...
...
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