Skip to content

Kirby 5.0.0

$collection->get()

Getter

$collection->get(string $key, mixed $default = null): TValue|mixed|null

Parameters

Name Type Default
$keyrequired string no default value
$default mixed null

Return types

TValueormixedornull

Parent class

Kirby\Cms\Collection inherited from Kirby\Toolkit\Collection