defaultStorageSettings() and defaultFieldSettings() should document that they must not have setting names in common

Created on 16 May 2024, about 1 year ago

Problem/Motivation

These two methods in FieldItemInterface look like they're totally separate, but other parts of core assume that the setting names are distinct.

For example in BaseFieldDefinition the two arrays are merged:

    $default_settings = $field_type_manager->getDefaultStorageSettings($type) + $field_type_manager->getDefaultFieldSettings($type);

Steps to reproduce

Proposed resolution

Document in both methods that setting names must be different from the ones returned by the other method.

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

🐛 Bug report
Status

Active

Version

11.0 🔥

Component
Documentation 

Last updated about 12 hours ago

No maintainer
Created by

🇬🇧United Kingdom joachim

Live updates comments and jobs are added and updated live.
  • Novice

    It would make a good project for someone who is new to the Drupal contribution process. It's preferred over Newbie.

Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024