Skip to content

Kirby 4.1.2

$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