Skip to content

Kirby 4.1.2

$users->current()

Returns the current element

$users->current(): mixed|null

Return type

mixed|null

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().