Needs review
Project:
Primary Entity Reference
Version:
1.0.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
27 Feb 2026 at 06:34 UTC
Updated:
22 May 2026 at 18:22 UTC
Jump to comment: Most recent
Comments
Comment #3
jdleonardAdded the needed Views support and performed basic manual testing via Views UI.
Comment #4
jdleonardNeeds a few phpDoc comments and to investigate one test failure for phpunit (next minor):
I won't have time to look into this further for a while.
Comment #5
jdleonardComment #6
jdleonardTests are now passing.
Note: had to remove "next major" from CI and opened #3585085: Drupal 12 support
I intend to review this further, but in the meantime it could do with some additional review.
Comment #7
sikofitt@jdleonard Just ran through the steps and if I am understanding correctly the views integration is working for me. I am able to add relationships and filter by them.
Comment #8
jdleonard@sikofitt Did you definitely add a base field definition (as opposed to a configurable field definition)? E.g. using
baseFieldDefinitions()?You might also double check #3566240: Views relationship plugin to relate a Contact to its Relationships.
Comment #9
sikofitt@jdleonard, I didn't do anything programmatically. I just added a plain text field and then created the view. Does this need to be tested by creating a test baseFieldDefinitions() in code?
Comment #10
jdleonard@sikofitt exactly!
Comment #11
jdleonardYou could also test by creating a view of CRM contacts and attempting to add a views relationship to contacts' contact methods (emails, telephones, addresses) as those fields are defined in
Contact::baseFieldDefinitions().