Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Follow-on from #1195718: Use "foreign keys" to create metadata properties.
This makes a nicer label for the forward relationship provided from entity Foo to entity Bar when foo_schema defines a foreign key to bar.
Example: if you have a uid field in your entity, then this makes the views relationship description say 'Associated user via the ENTITY's uid.'
Comment | File | Size | Author |
---|---|---|---|
#1 | 1630644.entity.views-relationships-from-property-ui-text.patch | 950 bytes | joachim |
Comments
Comment #1
joachim CreditAttribution: joachim commentedHere's a patch.
It sets the title too... then something *after* entity_views_data() has fired changes is back to the property name, ie 'uid' instead of 'user'. Will dig further if I have more time...
Comment #2
Chris Matthews CreditAttribution: Chris Matthews commentedThe 7 year old patch in #1 to entity.views.inc applied cleanly to the latest entity 7.x-1.x-dev, but still needs review.