You are here

public function Numeric::query in Views XML Backend 8

Same name in this branch
  1. 8 src/Plugin/views/filter/Numeric.php \Drupal\views_xml_backend\Plugin\views\filter\Numeric::query()
  2. 8 src/Plugin/views/sort/Numeric.php \Drupal\views_xml_backend\Plugin\views\sort\Numeric::query()

Add this filter to the query.

Due to the nature of fapi, the value and the operator have an unintended level of indirection. You will find them in $this->operator and $this->value respectively.

Overrides NumericFilter::query

File

src/Plugin/views/filter/Numeric.php, line 29
Contains \Drupal\views_xml_backend\Plugin\views\filter\Numeric.

Class

Numeric
Default implementation of the base filter plugin.

Namespace

Drupal\views_xml_backend\Plugin\views\filter

Code

public function query() {
  $this->query
    ->addFilter($this);
}