Пример #1
0
 /**
  * Adds a range of results to return.
  *
  * This will be saved in the query's options. If called without parameters,
  * this will remove all range restrictions previously set.
  *
  * @param int|null $offset
  *   The zero-based offset of the first result returned.
  * @param int|null $limit
  *   The number of results to return.
  *
  * @return $this
  *
  * @see \Drupal\search_api\Query\QueryInterface::range()
  */
 public function range($offset = NULL, $limit = NULL)
 {
     if (!$this->shouldAbort()) {
         $this->query->range($offset, $limit);
     }
     return $this;
 }