function SelectInterface::getRange

Same name and namespace in other branches
  1. 11.x core/lib/Drupal/Core/Database/Query/SelectInterface.php \Drupal\Core\Database\Query\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.

File

core/lib/Drupal/Core/Database/Query/SelectInterface.php, line 116

Class

SelectInterface
Interface definition for a Select Query object.

Namespace

Drupal\Core\Database\Query

Code

public function &getRange() : ?array;

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.