Currently the only method for altering raw facet data is via the filter system, which is executed on a per-realm basis. It would be great to have a hook that alters facet data one right after it is returned from the server. The original idea stemmed from the discussion at #1302590: Allow filters to access the map.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

cpliakas’s picture

Status: Active » Needs review
FileSize
2.49 KB

The attached patch allows for an "alter callback" that is applied on a per-facet basis and is invoked right after data is returned be the query type plugin.

cpliakas’s picture

FileSize
2.56 KB

Here is another patch that changes the "alter callbacks" key to an array so multiple altering functions can be applied to a facet.

cpliakas’s picture

cpliakas’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

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