Skip to content

Kirby 5.4.3

$options->first()

Returns the first element

$options->first(): Kirby\Option\Option|null

Return types

Kirby\Option\Optionornull

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

Parent class

Kirby\Option\Options inherited from Kirby\Toolkit\Collection