You are here

protected function ProximityFilter::opSimple in Geolocation Field 8

Same name and namespace in other branches
  1. 8.3 src/Plugin/views/filter/ProximityFilter.php \Drupal\geolocation\Plugin\views\filter\ProximityFilter::opSimple()
  2. 8.2 src/Plugin/views/filter/ProximityFilter.php \Drupal\geolocation\Plugin\views\filter\ProximityFilter::opSimple()

Overrides NumericFilter::opSimple

File

src/Plugin/views/filter/ProximityFilter.php, line 607

Class

ProximityFilter
Filter handler for search keywords.

Namespace

Drupal\geolocation\Plugin\views\filter

Code

protected function opSimple($expression) {

  /** @var \Drupal\views\Plugin\views\query\Sql $query */
  $query = $this->query;
  $query
    ->addWhereExpression($this->options['group'], $expression . ' ' . $this->operator . ' ' . $this->value['value']);
}