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.
I'd like to ask for support for entityreference fields.
There is currently built-in support for filtering by taxonomy terms, but as I'm using entityreference to link to taxonomy terms the built-in support doesn't work for me...
Comment | File | Size | Author |
---|---|---|---|
#1 | support_entityreference_fields-1882680-1.patch | 1.96 KB | BWPanda |
Comments
Comment #1
BWPanda CreditAttribution: BWPanda commentedHere's a patch that adds support for entityreference fields.
I originally tried to implement this using hook_search_facetapi_field_mappings(), but it didn't allow me to set different entity type options per field.
This patch is working for me.