Skip to content

Kirby 4.4.1

$collection->first()

Returns the first element

$collection->first(): mixed

Return type

mixed

Parent class

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