Skip to content

Kirby 6.0.1

$nestCollection->has()

Checks by key if an element is included

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

Parameters

Name Type Default
$keyrequired string no default value

Return type

bool

Parent class

Kirby\Cms\NestCollection inherited from Kirby\Toolkit\Iterator