Skip to content

Kirby 5.3.1

$segments->key()

Returns the current key

Deprecated
$segments->key(): string|int|null

Return types

stringorintornull

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

Parent class

Kirby\Query\Segments inherited from Kirby\Toolkit\Iterator