Closed (fixed)
Project:
Drupal core
Version:
11.x-dev
Component:
block_content.module
Priority:
Normal
Category:
Task
Assigned:
Reporter:
Created:
25 Sep 2025 at 17:29 UTC
Updated:
16 Oct 2025 at 07:54 UTC
Jump to comment: Most recent
Similar to #3447617: Stop automatic storage creation of body field for node we should stop shipping storage.body with block_cotent
NA
* Prevent creating the body field storage automatically for block types.
* Add a BC module block_content_storage_body_field
* Fix tests
Implement
Review
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
smustgrave commentedComment #4
smustgrave commentedThanks @dcam addressed your feedback.
Comment #5
dcam commentedThe basic functionality of the change works.
When I install the Standard profile the block_content Body field storage is still automatically created because the config was copied to the profile.
When I install the Minimal profile the Body field storage is not automatically created. I can install the
block_content_storage_body_fieldmodule to get the field storage.I fixed a typo and a copy/paste error in the CR.
Tests are passing. My feedback was already addressed. This one looks good to me.
Comment #7
catchThis looks good and indeed very similar to the node one. text_with_summary makes even less sense for blocks, must have been a copy and paste a long time ago. Much less assumes that block body fields exist than nodes so this is pretty low risk (hopefully that's actually the case).
Committed/pushed to 11.x, thanks!