- 🇳🇱Netherlands thomasdik
As the patch for the default value no longer applied for the default value I've updated the patch.
copy-paste from #14:
Unfortunately, Drupal core is inconsistent in it's implementation of default field values. I compared an image field with a default value to a text field with a default value and this is what I found:
This means we have two problems when handling default values in our blocks:
getDefaultValue()
) does not allow us to retrieve the default value when the field is empty. (Maybe it would be possible if FileFieldItemList would implement FieldItemListInterface::processDefaultValue, but that would be a core issue.) In theory we could add workarounds specifically for image/file fields, but I'm not keen on that.To be decided.
If image field has default image set the default image does not get displayed in the field block.
Needs work
2.0
Code
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
As the patch for the default value no longer applied for the default value I've updated the patch.