Skip to content

Kirby 6.0.0

$items->first()

Returns the first element

$items->first(): Item|null

Return types

Kirby\Cms\Itemornull

Parent class

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