You are here

public function Date::query in EntityFieldQuery Views Backend 8

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/Date.php, line 34
Contains \Drupal\efq_views\Plugin\views\filter\Date.

Class

Date
Filter handler for date properties.

Namespace

Drupal\efq_views\Plugin\views\filter

Code

public function query() {
  $info = $this
    ->operators();
  if (!empty($info[$this->operator]['method'])) {
    $this
      ->{$info[$this->operator]['method']}($this->real_field);
  }
}