Skip to content

Kirby 6.0.1

$hasSiblings->prev()

Returns the previous item in the collection if available

$hasSiblings->prev(Collection|null $collection = null): HasSiblings|null

Parameters

Name Type Default
$collection Kirby\Cms\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