Skip to content

Kirby 3.7.5

$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