class PaginationPresenter (View source)

Describes the page-number list for a Pagination object, with ellipses around the current page.

items() feeds templates/default/_partials/pagination.html; present() is the pre-rendered string still exposed as the pagination template variable for theme forks.

Methods

__construct(Pagination $pagination, string $urlPattern, int|null $rowsPerPage = null)

No description

array
items()

Previous, first page, leading ellipsis, the window around the current page, trailing ellipsis, last page and next, in display order. Empty for a single page.

string
present()

No description

Details

__construct(Pagination $pagination, string $urlPattern, int|null $rowsPerPage = null)

No description

Parameters

Pagination $pagination
string $urlPattern
int|null $rowsPerPage

array items()

Previous, first page, leading ellipsis, the window around the current page, trailing ellipsis, last page and next, in display order. Empty for a single page.

Return Value

array

string present()

No description

Return Value

string