Sample code for hook_entity_field_storage_info() is too specific

Created on 31 January 2022, almost 3 years ago
Updated 18 August 2024, 4 months ago

Problem/Motivation

API page: https://api.drupal.org/api/drupal/core%21lib%21Drupal%21Core%21Entity%21...

The sample code for this hook is taken from field module's implementation, which dynamically creates field storage for all config fields.

It's a very complex example, and not that helpful, as it doesn't show a field storage object actually being defined in code.

The code in this test implementation would be much better: https://api.drupal.org/api/drupal/core%21modules%21system%21tests%21modu...

Steps to reproduce

Proposed resolution

Remaining tasks

Postponed on 📌 Add the FieldStorageDefinition class to define field storage definitions in hook_entity_field_storage_info() Needs review
When no longer postponed, update the instructions for a first time contributor and add back novice tag.

User interface changes

Introduced terminology

API changes

Data model changes

Release notes snippet

🐛 Bug report
Status

Postponed

Version

11.0 🔥

Component
Documentation 

Last updated 1 day ago

No maintainer
Created by

🇬🇧United Kingdom joachim

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024