- π§πͺBelgium wim leers Ghent π§πͺπͺπΊ
7 years and 2 days later, this core bug is still biting us: π Blocks are missing their block.html.twig wrapper Active .
\Drupal\Core\Block\BlockPluginInterface specifies a ::build() method for each plugin to implement
This is currently only called in one place in core, \Drupal\block\BlockViewBuilder, where it is wrapped in a very specific and helpful render array
This logic is duplicated in every other module that wants to render blocks: Panelizer, Page Manager, Display Suite, and now the new core Layout Builder module.
Provide a wrapper method for ::build() called ::toRenderArray(), and move the code currently in BlockViewBuilder into the BlockBase implementation
N/A
N/A
API addition to BlockPluginInterface, but it can all but be assumed that every block extends BlockBase
N/A
Active
11.0 π₯
block.module
Blocks and Layouts Initiative. See the #2811175 Add layouts to Drupal issue.
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
7 years and 2 days later, this core bug is still biting us: π Blocks are missing their block.html.twig wrapper Active .