Skip to content

Kirby 4.2.0

$segments->first()

Returns the first element

$segments->first(): mixed

Return type

mixed

Parent class

Kirby\Query\Segments inherited from Kirby\Toolkit\Collection