$hasSiblings->prev()
Returns the previous item in the collection if available
$hasSiblings->prev(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