Skip to content

Kirby 5.0.4

Lock::legacy()

Looks for old .lock files and tries to create a usable lock instance from them

Lock::legacy() 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::legacy(Kirby\Cms\ModelWithContent $model): Kirby\Content\Lock|null

Parameters

Name Type Default
$modelrequired Kirby\Cms\ModelWithContent no default value

Return types

Kirby\Content\Lockornull

Parent class

Kirby\Content\Lock