function SelectExtender::getRange
Retrieves the query's range.
Return value
array{start: int, length: ?int}|null A reference to the range specification for this query. This is either NULL if no range was set on this query yet; or an associative array with the following two keys:
- start: The first record from the result set to return.
- length: The number of records to return from the result set.
Overrides SelectInterface::getRange
File
-
core/
lib/ Drupal/ Core/ Database/ Query/ SelectExtender.php, line 273
Class
- SelectExtender
- The base extender class for Select queries.
Namespace
Drupal\Core\Database\QueryCode
public function &getRange() : ?array {
return $this->query
->getRange();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.