public function Range::query in Range 8
Same name in this branch
- 8 src/Plugin/views/filter/Range.php \Drupal\range\Plugin\views\filter\Range::query()
- 8 src/Plugin/views/argument/Range.php \Drupal\range\Plugin\views\argument\Range::query()
Set up the query for this argument.
The argument sent may be found at $this->argument.
Overrides ArgumentPluginBase::query
File
- src/
Plugin/ views/ argument/ Range.php, line 60
Class
- Range
- Range views argument.
Namespace
Drupal\range\Plugin\views\argumentCode
public function query($group_by = FALSE) {
$this
->ensureMyTable();
$field_from = "{$this->tableAlias}.{$this->definition['additional fields']['from']}";
$field_to = "{$this->tableAlias}.{$this->definition['additional fields']['to']}";
$operator = $this->options['operator'];
$operators = $this
->operators();
if (!empty($operators[$operator]['method'])) {
$this
->{$operators[$operator]['method']}($field_from, $field_to);
}
}