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(Version $version, Language|string $language = 'default'): Lock
Parameters
| Name | Type | Default |
|---|---|---|
| $versionrequired | Kirby\Content\Version |
no default value |
| $language | Kirby\Cms\Languageorstring |
'default'
|