You are here

public function SearchApiSortsQueryPreExecute::__construct in Search API sorts 8

SearchApiSortsQueryAlter constructor.

Parameters

\Drupal\search_api_sorts\SearchApiSortsManagerInterface $search_api_sorts_manager: The search api sorts manager.

File

src/EventSubscriber/SearchApiSortsQueryPreExecute.php, line 29

Class

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

Namespace

Drupal\search_api_sorts\EventSubscriber

Code

public function __construct(SearchApiSortsManagerInterface $search_api_sorts_manager) {
  $this->searchApiSortsManager = $search_api_sorts_manager;
}