$version->lock()
Returns the lock object for the version
$version->lock()
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.
$version->lock(Kirby\Cms\Language|string $language = 'default'): Kirby\Content\Lock
Parameters
Name | Type | Default |
---|---|---|
$language | Kirby\Cms\Language orstring |
'default'
|
Return type
This method modifies the existing $version
object it is applied to and returns it again.