drupal / backport_node_storage_body_field
Polyfill for the node_storage_body_field sub-module introduced in Drupal 11.3.
Package info
git.drupalcode.org/project/backport_node_storage_body_field.git
Type:drupal-module
pkg:composer/drupal/backport_node_storage_body_field
Requires
- drupal/core: >=11.3
README
Polyfill for the node_storage_body_field sub-module introduced in Drupal 11.3
(#3447617).
In Drupal 11.3, field.storage.node.body was moved out of the Node module into
a new node_storage_body_field sub-module. Contributed modules that ship node
types with a body field must now declare a dependency on
node_storage_body_field to ensure the field storage config exists when their
module is installed.
This module provides a shim for older Drupal versions where that sub-module does not exist yet. The body field storage itself is still provided by the Node module on older core versions — this shim simply satisfies the dependency.
Versions
- 1.x (Drupal 10.x / 11.0-11.2): Empty shim module that satisfies the
node_storage_body_fielddependency. No config is shipped — the Node module already providesfield.storage.node.bodyon these core versions. - 2.x (Drupal 11.3+): Metapackage no-op. Core already provides
node_storage_body_field.
Usage
Add to your module's composer.json:
"require": {
"drupal/backport_node_storage_body_field": "^1 || ^2"
}
Add to your module's .info.yml:
dependencies:
- node_storage_body_field:node_storage_body_field
Remove field.storage.node.body from your module's config/install if present.