You are here

public function Pagerer::init in Pagerer 8

Initializes the pager.

Parameters

int $total: The total number of items to be paged.

int $limit: The number of items the calling code will display per page.

Return value

\Drupal\pagerer\Pagerer The Pagerer pager object.

Overrides PagererInterface::init

File

src/Pagerer.php, line 148

Class

Pagerer
Pagerer pager management class.

Namespace

Drupal\pagerer

Code

public function init($total, $limit) {
  pager_default_initialize($total, $limit, $this->element);
  return $this;
}