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.
What the title says – other modules integrating with the Search API and its facet integration will probably be glad if they won't have to look up the right search themselves.
See also: #1213360-22: Move to Facet API.
Comment | File | Size | Author |
---|---|---|---|
#1 | 1291376--adapter-getCurrentSearch-1.patch | 713 bytes | drunken monkey |
Comments
Comment #1
drunken monkeyPatch attached.
Comment #2
Anonymous (not verified) CreditAttribution: Anonymous commented:) Yes I tested this with my Search API ranges module. To get the query I do something like this
list($query, $results) = $this->facet->getAdapter()->getCurrentSearch();
Easier than before indeed.
Comment #3
drunken monkeyGreat, committed.