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