Skip to content

Kirby 5.0.4

Lock::for()

Creates a lock for the given version by reading the modification timestamp and lock user id from the version.

Lock::for() 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::for(Kirby\Content\Version $version, Kirby\Cms\Language|string $language = 'default'): Kirby\Content\Lock

Parameters

Name Type Default
$versionrequired Kirby\Content\Version no default value
$language Kirby\Cms\Languageorstring 'default'

Return type

Kirby\Content\Lock

Parent class

Kirby\Content\Lock