Skip to content

Kirby 4.2.0

$collection->first()

Returns the first element

$collection->first(): mixed

Return type

mixed

Parent class

Kirby\Toolkit\Collection