In #1172970: provide a unified way to retrieve result entities a generic way for retrieving entity references has been implemented. This is especially useful for showing Rules Links in a Search API view (for example), which has its own back-end.
The changes to the Rules Link module should be pretty simple. First the entity type needs to be added to the field definition (in hook_views_data) and second the entity id needs to be retrieved in a different way in the render function, but you can see the changes in the patch anyway.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

BenK’s picture

Subscribing....

mh86’s picture

mh86’s picture

Status: Active » Needs review
FileSize
2.07 KB

and here the patch to get Rules Link working with other back-ends (e.g. Search API).

patch needs #1270890: provide a way to provide entity-related views fields and #1291052: update provided views integration to match latest views as well

mh86’s picture

Forgot to mention that this patch breaks the existing rules link views fields, but we can wait and see how views handles the updates for the new node edit fields etc.

mh86’s picture

FileSize
2.08 KB

updated patch that applies with the Rules Link dev version

mh86’s picture

FileSize
2.17 KB

Since #1270890: provide a way to provide entity-related views fields went in, we can now push forward the rules link views integration. See attached an updated version of my patch with following changes:

sepgil’s picture

committed it, thanks for the patch!

sepgil’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

giorgio79’s picture

Issue summary: View changes

Did this make it into 7x 2?

I am not seeing any options for Rules Links in Search API Views.