Skip to content
Snippets Groups Projects
Commit 59c88474 authored by Paulo Henrique Cota Starling's avatar Paulo Henrique Cota Starling
Browse files

Revert "Issue #2988269 by silverham, paulocs, bzoks: Add block_build_alter()...

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

This reverts commit e40b0902.
parent 67d11dbe
No related branches found
No related tags found
No related merge requests found
...@@ -264,9 +264,6 @@ class Blocks extends ContextReactionPluginBase implements ContainerFactoryPlugin ...@@ -264,9 +264,6 @@ class Blocks extends ContextReactionPluginBase implements ContainerFactoryPlugin
// another #pre_render hook. // another #pre_render hook.
\Drupal::moduleHandler()->alter(['block_view', 'block_view_' . $block->getBaseId()], $block_build, $block); \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; $build[$region][$block_placement_key] = $block_build;
// After merging with blocks from Block layout, we want to sort all of // After merging with blocks from Block layout, we want to sort all of
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment