I've run into an issue around compatibility with Ubercart (e-commerce module).
All field output made through the core field formatters provide a "#formatter" in the render array. This comes from the Drupal\Core\Field\FormatterBase class and holds the ID of the field formatter.
However, custom DS fields, does not have the "#formatter" key in the render array.
I've proposed the maintainer of Ubercart to make a check if the "#formatter" key is present, but we have been proposed to make DS go with the default API of fields, see issue here:
https://www.drupal.org/node/2752131
Can we fix this by adding the "#formatter" for the custom DS fields? See proposed patch.
Comment | File | Size | Author |
---|---|---|---|
#2 | compatibility_for_ds-2760947-2.patch | 577 bytes | bjaxelsen |
Comments
Comment #2
bjaxelsen CreditAttribution: bjaxelsen at Fagkommunikation for BYG-ERFA commentedComment #3
bjaxelsen CreditAttribution: bjaxelsen at Fagkommunikation for BYG-ERFA commentedComment #4
bjaxelsen CreditAttribution: bjaxelsen at Fagkommunikation for BYG-ERFA commented(deleted)
Comment #5
aspilicious CreditAttribution: aspilicious commentedComment #7
aspilicious CreditAttribution: aspilicious commentedThnx, seems harmless (hopefully) :)
Comment #8
bjaxelsen CreditAttribution: bjaxelsen at Fagkommunikation for BYG-ERFA commentedthanks :-)