You are here

public function NumericRangeArgument::query in Views Contextual Range Filter 8

Create the query.

Overrides NumericArgument::query

File

src/Plugin/views/argument/NumericRangeArgument.php, line 64

Class

NumericRangeArgument
Argument handler to accept a numeric range.

Namespace

Drupal\contextual_range_filter\Plugin\views\argument

Code

public function query($group_by = FALSE) {
  $this
    ->ensureMyTable();

  // Check "Allow multple ranges" checkbox.
  if (!empty($this->options['break_phrase'])) {
    $this
      ->breakPhraseRange($this->argument);
  }
  else {
    $this->value = [
      $this->argument,
    ];
  }
  ContextualRangeFilter::buildRangeQuery($this);
}