Skip to content

Kirby 6.0.0

$blocks->first()

Returns the first element

$blocks->first(): Block|null

Return types

Kirby\Cms\Blockornull

Parent class

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