function StatementIteratorTrait::current

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

Returns the current element.

@internal This method should not be called directly.

See also

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

File

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

Class

StatementIteratorTrait
StatementInterface iterator trait.

Namespace

Drupal\Core\Database

Code

public function current() : mixed {
    return $this->resultsetRow;
}

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