You are here

public function SearchApiSortsManagerInterface::getActiveSort in Search API sorts 8

Returns the active sort field and order for a given search api display.

Parameters

\Drupal\search_api\Display\DisplayInterface $display: The display where the active sort should be returned for.

Return value

\Drupal\search_api_sorts\SortsField An object containing the field and order.

1 method overrides SearchApiSortsManagerInterface::getActiveSort()
SearchApiSortsManager::getActiveSort in src/SearchApiSortsManager.php
Returns the active sort field and order for a given search api display.

File

src/SearchApiSortsManagerInterface.php, line 22

Class

SearchApiSortsManagerInterface
Defines the interface for the search api sort manager.

Namespace

Drupal\search_api_sorts

Code

public function getActiveSort(DisplayInterface $display);