You are here

public static function SearchApiQueryPreExecute::getSubscribedEvents in JSON:API Search API 8

File

modules/jsonapi_search_api_facets/src/EventSubscriber/SearchApiQueryPreExecute.php, line 36

Class

SearchApiQueryPreExecute
Adds Facets support to a Search API Query.

Namespace

Drupal\jsonapi_search_api_facets\EventSubscriber

Code

public static function getSubscribedEvents() {
  $events[SearchApiEvents::QUERY_PRE_EXECUTE][] = [
    'includeFacetsInQuery',
  ];
  return $events;
}