Skip to content

Kirby 5.1.1

$user->next()

Returns the next item in the collection if available

$user->next(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