Skip to content

Kirby 6.0.0

$collection->first()

Returns the first element

$collection->first(): mixed|null

Return types

mixedornull

Parent class

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