Skip to content

Kirby 5.0.0

$fieldsets->has()

Checks if the given object or id is in the collection

$fieldsets->has(string|Kirby\Cms\Fieldset $key): bool

Parameters

Name Type Default
$keyrequired stringorKirby\Cms\Fieldset no default value

Return type

bool

Parent class

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