Skip to content

Kirby 4.2.0

$nestcollection->first()

Returns the first element

$nestcollection->first(): mixed

Return type

mixed

Parent class

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