You are here

public function SearchApiSortsManagerInterface::getEnabledSorts in Search API sorts 8

Returns all enabled sort fields for a given search api display.

Parameters

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

Return value

\Drupal\search_api_sorts\Entity\SearchApiSortsField[] An array of sort field entities.

1 method overrides SearchApiSortsManagerInterface::getEnabledSorts()
SearchApiSortsManager::getEnabledSorts in src/SearchApiSortsManager.php
Returns all enabled sort fields for a given search api display.

File

src/SearchApiSortsManagerInterface.php, line 44

Class

SearchApiSortsManagerInterface
Defines the interface for the search api sort manager.

Namespace

Drupal\search_api_sorts

Code

public function getEnabledSorts(DisplayInterface $display);