function StatementIteratorTrait::next

Same name and namespace in other branches
  1. 10 core/lib/Drupal/Core/Database/StatementIteratorTrait.php \Drupal\Core\Database\StatementIteratorTrait::next()

Moves the current position to the next element.

This method is called after each foreach loop.

@internal This method should not be called directly.

See also

https://www.php.net/manual/en/iterator.next.php

File

core/lib/Drupal/Core/Database/StatementIteratorTrait.php, line 123

Class

StatementIteratorTrait
StatementInterface iterator trait.

Namespace

Drupal\Core\Database

Code

public function next() : void {
    $this->fetch();
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.