Skip to content

Kirby 4.5.0

$content->has()

Checks if a content field is set

$content->has(string $key): bool

Parameters

Name Type Default
$key * string

Return type

bool

Parent class

Kirby\Content\Content