You are here

public function StatementWrapper::getIterator in Drupal 9

File

core/lib/Drupal/Core/Database/StatementWrapper.php, line 311

Class

StatementWrapper
Implementation of StatementInterface encapsulating PDOStatement.

Namespace

Drupal\Core\Database

Code

public function getIterator() {
  return new \ArrayIterator($this
    ->fetchAll());
}