You are here

public function SequenceIndex::getRange in Multiversion 8

Same name and namespace in other branches
  1. 8.2 src/Entity/Index/SequenceIndex.php \Drupal\multiversion\Entity\Index\SequenceIndex::getRange()

Parameters

float $start:

float $stop:

boolean $inclusive:

Return value

array

Overrides SequenceIndexInterface::getRange

File

src/Entity/Index/SequenceIndex.php, line 71

Class

SequenceIndex

Namespace

Drupal\multiversion\Entity\Index

Code

public function getRange($start, $stop = NULL, $inclusive = TRUE) {
  $range = $this
    ->sortedSetStore()
    ->getRange($start, $stop, $inclusive);
  if (empty($range)) {
    $range = $this
      ->sortedSetStore(0)
      ->getRange($start, $stop, $inclusive);
  }
  return $range;
}