Pages::getLastPage()

Version 4.1

Return last page from collection.

Return the last page from collection. If collection is empty, return empty page.

Return value

Object Page

Example

Get last page from the collection.

$Project = $Projects->getLastPage();

Full documentation

Get last task of the project -page.

$Project = $Project->tasks->getLastPage();