Skip to content

Kirby 5.1.3

$hasSiblings->next()

Returns the next item in the collection if available

$hasSiblings->next(Kirby\Toolkit\Collection|null $collection = null): Kirby\Cms\HasSiblings|null

Parameters

Name Type Default
$collection Kirby\Toolkit\Collectionornull null

Return types

Kirby\Cms\HasSiblingsornull

This method does not modify the existing $hassiblings object but returns a new object with the changes applied. Learn more →

Parent class

Kirby\Cms\HasSiblings