Skip to content

Kirby 5.1.1

$user->prevAll()

Returns the beginning of the collection before the current item

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

Parameters

Name Type Default
$collection Kirby\Cms\Usersornull null

Return type

Kirby\Cms\Users

This method modifies the existing $user object it is applied to and returns it again.

Parent class

Kirby\Cms\User