Added handle for .is-active for pager linke in Pager block with ajax

This commit is contained in:
Kyle Huynh 2022-01-27 04:39:35 +00:00
parent 17274d141e
commit 3e3b68c72d
3 changed files with 34 additions and 4 deletions

View file

@ -212,7 +212,7 @@ class SearchResultsPagerBlock extends BlockBase implements ContainerFactoryPlugi
* A renderable array representing the display links portion of pager.
*/
protected function buildDisplayLinks(array $query_parameters) {
$active_display = $query_parameters['display'] ?? 'list';
$active_display = $query_parameters['display'] ?? 'grid';
$display_options = [
'list' => [
'icon' => 'fa-list',