Skip to content

Kirby 6.0.0

$lazyCollection->has()

Checks by key if an element is included

$lazyCollection->has(string|mixed $key): bool

Parameters

Name Type Default
$keyrequired stringormixed no default value

Return type

bool

Parent class

Kirby\Cms\LazyCollection