$collection->key() Returns the current key kirby/src/Toolkit/Iterator.php#L44 $collection->key(): string|int|null Return type string|int|null Parent class Kirby\Cms\Collection inherited from Kirby\Toolkit\Iterator