Skip to content

Kirby 4.3.0


Sets the iterator class, which should be used for multiple results Set this to array to get a simple array instead of an iterator object

$query->iterator(string $iterator): Kirby\Database\Query


Name Type Default
$iterator * string

Return type


This method does not modify the existing $query object but returns a new object with the changes applied. Learn more →

Parent class