[PP-1] bundleFieldDefinitions() are not added in EntityViewsData

Created on 31 July 2017, almost 7 years ago
Updated 16 February 2024, 4 months ago

Problem/Motivation

You can define bundle fields on your entity in bundleFieldDefinitions(), you may need a patch like #2817751: Create an API for bundle plugins β†’ or at the very least a class that extends BaseFieldDefinition and sets isBaseField to FALSE. See Drupal\entity_test\FieldStorageDefinition as an example.

These bundle fields are not added into the views data in EntityViewsData.

Proposed resolution

Add the fields.

Remaining tasks

Discuss the solution, add tests.

πŸ› Bug report
Status

Needs work

Version

11.0 πŸ”₯

Component
ViewsΒ  β†’

Last updated less than a minute ago

Created by

πŸ‡¦πŸ‡ΊAustralia benjy

Live updates comments and jobs are added and updated live.
  • Needs tests

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024