$page->nextAll()
Returns the end of the collection starting after the current item
$page->nextAll(Kirby\Cms\Pages|null $collection = null): Kirby\Cms\Pages
Parameters
| Name | Type | Default |
|---|---|---|
| $collection | Kirby\Cms\Pagesornull |
null
|
Return type
This method modifies the existing $page object it is applied to and returns it again.