Skip to content

Kirby 5.0.1

$user->prev()

Returns the previous item in the collection if available

$user->prev(Kirby\Cms\Users|null $collection = null): Kirby\Cms\User|null

Parameters

Name Type Default
$collection Kirby\Cms\Usersornull null

Return types

Kirby\Cms\Userornull

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

Parent class

Kirby\Cms\User