Skip to content

Kirby 4.5.0

$fieldsets->has()

Checks if the given object or id is in the collection

$fieldsets->has(string|object $key): bool

Parameters

Name Type Default
$key * string|object

Return type

bool

Parent class

Kirby\Cms\Fieldsets inherited from Kirby\Cms\Collection