Ability to restrict reverse lookup by bundle

Created on 15 August 2023, 11 months ago
Updated 9 October 2023, 9 months ago

Problem/Motivation

We have a reverse entity reference computed field in use, but the field being "reversed" is in use on multiple bundles. We want the reference only from a specific bundle. This seems like a pretty quick and easy feature, so I'm suggested adding to the existing plugin rather than adding another plugin with an awkward name like, "reverse entity reference to specific bundle"

Steps to reproduce

Use the same field storage to create to field configurations of an entity reference field from different bundles. Add a computed field to the target entity type pointing at that storage. Add some entities and display the field, you'll get results from both the original bundles.

Proposed resolution

Add a configuration option to the existing computed field plugin.

API changes

Just another configuration field that can be handled naturally when left blank.

✨ Feature request
Status

Needs review

Version

4.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States gcb

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.69.0 2024