$item->next()
Returns the next item in the collection if available
$item->next(Kirby\Cms\Items|null $collection = null): Kirby\Cms\Item|null
Parameters
Name | Type | Default |
---|---|---|
$collection | Kirby\Cms\Items ornull |
null
|
Return types
Kirby\Cms\Item
ornull
This method does not modify the existing $item
object but returns a new object with the changes applied. Learn more →