Skip to content

Kirby 3.5.7.1

$users->current()

Returns the current element

$users->current(): mixed

Return type

mixed

Parent class

Kirby\Cms\Users inherited from Kirby\Toolkit\Iterator

Details

Note that this method does not get the currently logged in user, but the current user in the collection. To get the currently logged in user, use $user = $kirby->user().