function StatementIteratorTrait::getResultsetCurrentRowIndex

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

Returns the row index of the current element in the resultset.

Return value

int The row index of the current element in the resultset.

1 call to StatementIteratorTrait::getResultsetCurrentRowIndex()
StatementPrefetchIterator::fetch in core/lib/Drupal/Core/Database/StatementPrefetchIterator.php
Fetches the next row from a result set.

File

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

Class

StatementIteratorTrait
StatementInterface iterator trait.

Namespace

Drupal\Core\Database

Code

protected function getResultsetCurrentRowIndex() : int {
    return $this->resultsetKey;
}

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