Skip to content

Kirby 5.4.3

$fieldsets->first()

Returns the first element

$fieldsets->first(): Kirby\Cms\Fieldset|null

Return types

Kirby\Cms\Fieldsetornull

This method modifies the existing $fieldsets object it is applied to and returns it again.

Parent class

Kirby\Cms\Fieldsets inherited from Kirby\Toolkit\Collection