Skip to content

Kirby 6.0.1

$nestCollection->first()

Returns the first element

$nestCollection->first(): NestCollection|NestObject|Field|null

Return types

Kirby\Cms\NestCollectionorKirby\Cms\NestObjectorKirby\Content\Fieldornull

Parent class

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