Problem/Motivation

Issue SourceValueItem field synchronized translations introduced a new field item list class for the ui_patterns_source field type.
It overrides function defaultValueWidget() with return NULL; which results in not being able to set a default value for a field component.

Was there a specific reason for this override?

Field config before the change:
default value form for ui_patterns_source

with SourceValueList override:
no default form available

PS: it is still possible to set the default values in the configuration

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

stborchert created an issue. See original summary.

stborchert’s picture

Issue summary: View changes
pdureau’s picture

Assigned: Unassigned » christian.wiedemann

It overrides function defaultValueWidget() with return NULL; which results in not being able to set a default value for a field component.

Was there a specific reason for this override?

I believe there are no specific reason for this, but let's ask Christian

just_like_good_vibes’s picture

i will propose a fix

just_like_good_vibes’s picture

Assigned: just_like_good_vibes » Unassigned
Status: Active » Needs review

The default value widget was probably hidden to protect synchronized translations.

The MR !578 brings the widget back for default value, adds the missing config schema for default values, and keeps new synchronized translations empty so they show the original language until someone translates them.

someone to review?