function SelectInterface::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.
2 methods override SelectInterface::getRange()
- Select::getRange in core/
lib/ Drupal/ Core/ Database/ Query/ Select.php - Retrieves the query's range.
- SelectExtender::getRange in core/
lib/ Drupal/ Core/ Database/ Query/ SelectExtender.php - Retrieves the query's range.
File
-
core/
lib/ Drupal/ Core/ Database/ Query/ SelectInterface.php, line 116
Class
- SelectInterface
- Interface definition for a Select Query object.
Namespace
Drupal\Core\Database\QueryCode
public function &getRange() : ?array;
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.