function StatementIteratorTrait::key

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

Returns the key of the current element.

@internal This method should not be called directly.

See also

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

File

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

Class

StatementIteratorTrait
StatementInterface iterator trait.

Namespace

Drupal\Core\Database

Code

public function key() : mixed {
    return $this->resultsetKey;
}

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