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.

CommentFileSizeAuthor
#2 compatibility_for_ds-2760947-2.patch577 bytesbjaxelsen
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

bjaxelsen created an issue. See original summary.

bjaxelsen’s picture

bjaxelsen’s picture

Issue summary: View changes
bjaxelsen’s picture

(deleted)

aspilicious’s picture

Status: Active » Needs review

  • aspilicious committed 36872af on 8.x-2.x authored by bjaxelsen
    Issue #2760947 by bjaxelsen: Compatibility for DS fields with other...
aspilicious’s picture

Status: Needs review » Fixed

Thnx, seems harmless (hopefully) :)

bjaxelsen’s picture

thanks :-)

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.