CodeExplorersetPager example
public function __construct(PagerParametersInterface
$pager_params) { $this->pagerParams =
$pager_params;
} /**
* {@inheritdoc}
*/
public function createPager($total,
$limit,
$element = 0
) { $currentPage =
$this->pagerParams->
findPage($element);
$pager =
new Pager($total,
$limit,
$currentPage);
$this->
setPager($pager,
$element);
return $pager;
} /**
* {@inheritdoc}
*/
public function getPager($element = 0
) { return $this->pagers
[$element] ?? NULL;
} /**
* {@inheritdoc}
*/