Skip to content

Kirby 5.0.2

$collection->first()

Returns the first element

$collection->first(): TValue

Return type

TValue

Parent class

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