public function SearchApiSortsManagerInterface::getDefaultSort in Search API sorts 8
Returns the default sort field and order.
Parameters
\Drupal\search_api\Display\DisplayInterface $display: The display where the default sort should be returned for.
Return value
\Drupal\search_api_sorts\SortsField An object containing the field and order.
1 method overrides SearchApiSortsManagerInterface::getDefaultSort()
- SearchApiSortsManager::getDefaultSort in src/
SearchApiSortsManager.php - Returns the default sort field and order.
File
- src/
SearchApiSortsManagerInterface.php, line 33
Class
- SearchApiSortsManagerInterface
- Defines the interface for the search api sort manager.
Namespace
Drupal\search_api_sortsCode
public function getDefaultSort(DisplayInterface $display);