Skip to content

Kirby 4.1.2

$collection->first()

Returns the first element

$collection->first(): mixed

Return type

mixed

Parent class

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