Skip to content

Kirby 3.9.8

$contentlocks->set()

Sets and writes the lock/unlock data for the specified model

$contentlocks->set(Kirby\Cms\ModelWithContent $model, array $data): bool

Parameters

Name Type Default
$model * Kirby\Cms\ModelWithContent
$data * array

Return type

bool

Exceptions

Type Description
Kirby\Exception\Exception

Parent class

Kirby\Cms\ContentLocks