Skip to content

Kirby 4.5.0

$collection->first()

Returns the first element

$collection->first(): mixed

Return type

mixed

Parent class

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