Skip to content

Kirby 4.4.1

$collection->first()

Returns the first element

$collection->first(): mixed

Return type

mixed

Parent class

Kirby\Toolkit\Collection