/**
* Does the actual work of displaying the view file. Used internally
* by links(), simpleLinks(), and makeLinks().
*/
protected function displayLinks(string
$group, string
$template): string
{ if (!
array_key_exists($template,
$this->config->templates
)) { throw PagerException::
forInvalidTemplate($template);
} $pager =
new PagerRenderer($this->
getDetails($group));
return $this->view->
setVar('pager',
$pager) ->
render($this->config->templates
[$template]);
} /**
* Stores a set of pagination data for later display. Most commonly used
* by the model to automate the process.
*
* @return $this
*/