Display "DESC" when showing default sort.
This commit is contained in:
parent
22e1c78b00
commit
4dceaa7e90
1 changed files with 1 additions and 1 deletions
|
|
@ -274,7 +274,7 @@ class SearchResultsPagerBlock extends BlockBase implements ContainerFactoryPlugi
|
||||||
* A renderable array representing the sort by portion of pager.
|
* A renderable array representing the sort by portion of pager.
|
||||||
*/
|
*/
|
||||||
protected function buildSortByForm(array $sort_criteria, array $query_parameters) {
|
protected function buildSortByForm(array $sort_criteria, array $query_parameters) {
|
||||||
$default_order = $query_parameters['sort_order'] ?? 'ASC';
|
$default_order = $query_parameters['sort_order'] ?? 'DESC';
|
||||||
$default_sort_by = $query_parameters['sort_by'] ?? 'search_api_relevance';
|
$default_sort_by = $query_parameters['sort_by'] ?? 'search_api_relevance';
|
||||||
$default_value = $default_sort_by . '_' . strtolower($default_order);
|
$default_value = $default_sort_by . '_' . strtolower($default_order);
|
||||||
$options = [];
|
$options = [];
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue