You are here

public function ViewsJsonFilter::generate in Views Json Source 8

Same name and namespace in other branches
  1. 1.x src/Plugin/views/filter/ViewsJsonFilter.php \Drupal\views_json_source\Plugin\views\filter\ViewsJsonFilter::generate()

Generate the filter criteria.

File

src/Plugin/views/filter/ViewsJsonFilter.php, line 244

Class

ViewsJsonFilter
Base filter handler for views_json_source.

Namespace

Drupal\views_json_source\Plugin\views\filter

Code

public function generate() {
  $operator = $this->options['operator'];
  $key = $this->options['key'];
  $value = $this->options['value'];
  return [
    $key,
    $operator,
    $value,
  ];
}