class PaginateController extends AbstractWidgetController (View source)

The widget controller for the Node Paginate Widget

Properties

protected NodeInterface $parentNode
protected NodeInterface[] $nodes
protected string $nodeTypeFilter
protected array $configuration
protected int $currentPage
protected int $pagesBefore
protected int $pagesAfter
$maximumNumberOfLinks
protected int $maximumNumberOfNodes
protected int $numberOfPages
protected int $displayRangeStart
protected int $displayRangeEnd

Methods

void
initializeAction()

No description

void
indexAction(int $currentPage = 1)

No description

void
calculateDisplayRange()

If a certain number of links should be displayed, adjust before and after amounts accordingly.

array
buildPagination()

Returns an array with the keys "pages", "current", "numberOfPages", "nextPage" & "previousPage"

Details

protected void initializeAction()

No description

Return Value

void

void indexAction(int $currentPage = 1)

No description

Parameters

int $currentPage

Return Value

void

Exceptions

PageNotFoundException

protected void calculateDisplayRange()

If a certain number of links should be displayed, adjust before and after amounts accordingly.

Return Value

void

protected array buildPagination()

Returns an array with the keys "pages", "current", "numberOfPages", "nextPage" & "previousPage"

Return Value

array