Skip to content

Kirby 5.0.4

$item->nextAll()

Returns the end of the collection starting after the current item

$item->nextAll(Kirby\Cms\Items|null $collection = null): Kirby\Cms\Items

Parameters

Name Type Default
$collection Kirby\Cms\Itemsornull null

Return type

Kirby\Cms\Items

This method modifies the existing $item object it is applied to and returns it again.

Parent class

Kirby\Cms\Item