Skip to content

Kirby 5.1.2

$options->first()

Returns the first element

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

Return type

Kirby\Option\Option

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