Commerce added a CommerceEntityViewsData handler in version 2.15 which works around many core bugs which affect custom entity types:
1) Contains special handling for the following base field types: datetime, list_float, list_integer, list_string. Workaround for core issue #2337515: Allow @FieldType to customize views data.
2) Provides views data for bundle plugin fields, as a workaround for core issue #2898635: bundleFieldDefinitions() are not added in EntityViewsData.
3) Provides the missing delta field for multi-value fields, as a workaround for core issue #3097568: EntityViewsData does not generate a "additional fields" nor "delta" field for multivalue base fields.
4) Fixes handling of fields with multiple properties, as a workaround for core issue #3097636: EntityViewsData::mapSingleFieldViewsData() should not use the "field" handler for every field property.
5) Provides reverse relationships for base entity_reference fields, as a workaround for core issue #2706431: provide Views reverse relationships automatically for entity base fields.
All of this makes sense outside of Commerce as well, so let's move it up a level.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | 3116128-2-entity-views-data.patch | 18.89 KB | bojanz |
Comments
Comment #2
bojanz commentedHere we go.
Comment #4
bojanz commentedCommitted.