Skip to content

Kirby 4.3.0

$path->first()

Returns the first element

$path->first(): mixed

Return type

mixed

Parent class

Kirby\Http\Path inherited from Kirby\Toolkit\Collection