function PrefetchedResult::setFetchMode
Overrides ResultBase::setFetchMode
File
-
core/
lib/ Drupal/ Core/ Database/ Statement/ PrefetchedResult.php, line 59
Class
- PrefetchedResult
- Class for prefetched results of a data query language (DQL) statement.
Namespace
Drupal\Core\Database\StatementCode
public function setFetchMode(FetchAs $mode, array $fetchOptions) : bool {
// We do not really need to do anything here, since calls to any of this
// class' methods require an explicit fetch mode to be passed in, and we
// have no longer an active client statement to which we may want to pass
// the default fetch mode. Just return TRUE.
return TRUE;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.