Skip to content

Kirby 3.6.6

$kirby->contentToken()

Generates a non-guessable token based on model data and a configured salt

$kirby->contentToken(mixed $model, string $value): string

Parameters

Name Type Default Description
$model * mixed Object to pass to the salt callback if configured
$value * string Model data to include in the generated token

Return type

string

Parent class

Kirby\Cms\App