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\DatabaseCode
public function getIterator() {
return new \ArrayIterator($this
->fetchAll());
}