Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
People ask for mutating block presentation.
There should be a best practice guide to explain how to do this... (or a plugin to handle this if we can improve the experience somehow cleanly).
A block override plugin might need to override rendered blocks in hook_page_alter. But this is far from a preferred override method and adds double load/render overhead...
Comments
Comment #1
miro_dietikerPossibly the context module might be a great help here and some integration with test state.
#1564870: Add context support