$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\Collection ornull |
null
|
Return types
Kirby\Cms\HasSiblings
ornull
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