Add the FieldStorageDefinition class to define field storage definitions in hook_entity_field_storage_info()

Created on 5 June 2014, over 10 years ago
Updated 5 September 2023, about 1 year ago

Problem/Motivation

We should add a dedicated field storage definition class which allows modules to define field storage definitions in hook_entity_field_storage_info() without having a config-field easily.

Proposed resolution

Add a FieldStorageDefinition class that implements FieldStorageDefinitionInterface.

Remaining tasks

Patch.

User interface changes

None.

API changes

Additional builder class for storage definitions.

Data model changes

None.

Out of scope

Any changes to BaseFieldDefinition, @see #3014760: [PP-2] Create an abstract composite field definition/storage definition and update BaseFieldDefinition to use it .

📌 Task
Status

Needs review

Version

11.0 🔥

Component
Entity 

Last updated 1 day ago

Created by

🇦🇹Austria fago Vienna

Live updates comments and jobs are added and updated live.
  • Needs tests

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

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