Skip to content

Kirby 5.0.4

$lock->user()

Returns the user to whom this lock belongs

$lock->user() has been marked as unstable. It might be changed in a future Kirby major or minor release without being considered a breaking change. Use with caution.

$lock->user(): Kirby\Cms\User|null

Return types

Kirby\Cms\Userornull

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

Parent class

Kirby\Content\Lock