Skip to content

Kirby 6.0.1

Lock::legacy()

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

Deprecated in 6.0.0
Old .lock files are no longer supported
and are ignored by Lock::for(). They can be safely deleted.

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(ModelWithContent $model): Lock|null

Parameters

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

Return types

Kirby\Content\Lockornull

Parent class

Kirby\Content\Lock