PaginateController
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 | ||
protected int | $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
void
indexAction(int $currentPage = 1)
No description
protected void
calculateDisplayRange()
If a certain number of links should be displayed, adjust before and after amounts accordingly.
protected array
buildPagination()
Returns an array with the keys "pages", "current", "numberOfPages", "nextPage" & "previousPage"