You are here

public static function SearchApiSortsQueryPreExecute::getSubscribedEvents in Search API sorts 8

File

src/EventSubscriber/SearchApiSortsQueryPreExecute.php, line 64

Class

SearchApiSortsQueryPreExecute
Class that adds the sorting logic to the search api query.

Namespace

Drupal\search_api_sorts\EventSubscriber

Code

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