public function QueryBase::range

Implements \Drupal\Core\Entity\Query\QueryInterface::range().

1 call to QueryBase::range()
QueryBase::initializePager in drupal/core/lib/Drupal/Core/Entity/Query/QueryBase.php
Gets the total number of results and initialize a pager for the query.

File

drupal/core/lib/Drupal/Core/Entity/Query/QueryBase.php, line 165
Contains \Drupal\Core\Entity\Query\QueryBase.

Class

QueryBase
The base entity query class.

Namespace

Drupal\Core\Entity\Query

Code

public function range($start = NULL, $length = NULL) {
  $this->range = array(
    'start' => $start,
    'length' => $length,
  );
  return $this;
}