function Select::getRange
Same name and namespace in other branches
- main core/lib/Drupal/Core/Database/Query/Select.php \Drupal\Core\Database\Query\Select::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/ Select.php, line 420
Class
- Select
- Query builder for SELECT statements.
Namespace
Drupal\Core\Database\QueryCode
public function &getRange() : ?array {
return $this->range;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.