setDefaultValueCallback() & setDefaultValue() should be on FieldDefinitionInterface, not FieldConfigInterface

Created on 30 May 2018, almost 7 years ago
Updated 31 January 2023, over 2 years ago

BaseFieldDefinition::setDefaultValueCallback() looks like it belongs to an interface, but it doesn't.

See https://api.drupal.org/api/drupal/8.2.x/search/setDefaultValueCallback --

- FieldConfigBase::setDefaultValueCallback implements FieldConfigInterface::setDefaultValueCallback
- BaseFieldDefinition::setDefaultValueCallback is not from any of BaseFieldDefinition's interfaces

This should probably be moved from FieldConfigInterface to FieldDefinitionInterface, which BaseFieldDefinition implements.

πŸ› Bug report
Status

Needs work

Version

10.1 ✨

Component
FieldΒ  β†’

Last updated 1 day ago

Created by

πŸ‡¬πŸ‡§United Kingdom joachim

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

Merge Requests

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