Commit e40b0902 authored by paulocs's avatar paulocs Committed by paulocs

Issue #2988269 by silverham, paulocs, bzoks: Add block_build_alter() call to Block Reaction

parent 45c52bc9
......@@ -264,6 +264,9 @@ class Blocks extends ContextReactionPluginBase implements ContainerFactoryPlugin
// another #pre_render hook.
\Drupal::moduleHandler()->alter(['block_view', 'block_view_' . $block->getBaseId()], $block_build, $block);
// Allow altering of cacheability metadata or setting #create_placeholder.
\Drupal::moduleHandler()->alter(['block_build', "block_build_" . $block->getBaseId()], $blockBuild, $block);
$build[$region][$block_placement_key] = $block_build;
// 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