public function StatementWrapper::fetchField in Drupal 10
Same name and namespace in other branches
- 9 core/lib/Drupal/Core/Database/StatementWrapper.php \Drupal\Core\Database\StatementWrapper::fetchField()
File
- core/
lib/ Drupal/ Core/ Database/ StatementWrapper.php, line 156
Class
- StatementWrapper
- Implementation of StatementInterface encapsulating PDOStatement.
Namespace
Drupal\Core\DatabaseCode
public function fetchField($index = 0) {
// Call \PDOStatement::fetchColumn to fetch the field.
return $this->clientStatement
->fetchColumn($index);
}