Commit 830f1623 authored by rsmylski's avatar rsmylski Committed by boshtian

Issue #2897045 by rsmylski, matjaz_zavski: Add block_view_alter() call to Block Reaction

parent 482b8af6
......@@ -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
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