Skip to content

Kirby 6.0.0

$structure->first()

Returns the first element

$structure->first(): StructureObject|null

Return types

Kirby\Cms\StructureObjectornull

Parent class

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