Skip to content

Kirby 4.2.0

$items->key()

Returns the current key

$items->key(): string|int|null

Return type

string|int|null

Parent class

Kirby\Cms\Items inherited from Kirby\Toolkit\Iterator