function StatementIteratorTrait::next
Same name in other branches
- 11.x 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 124
Class
- StatementIteratorTrait
- StatementInterface iterator trait.
Namespace
Drupal\Core\DatabaseCode
public function next() : void {
$this->fetch();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.