You are here

public function ElasticsearchViewsFulltextSearch::operatorOptions in Elasticsearch Connector 8.7

Same name and namespace in other branches
  1. 8.6 modules/elasticsearch_connector_views/src/Plugin/views/filter/ElasticsearchViewsFulltextSearch.php \Drupal\elasticsearch_connector_views\Plugin\views\filter\ElasticsearchViewsFulltextSearch::operatorOptions()

Build strings from the operators() for 'select' options

Overrides FilterPluginBase::operatorOptions

1 call to ElasticsearchViewsFulltextSearch::operatorOptions()
ElasticsearchViewsFulltextSearch::adminSummary in modules/elasticsearch_connector_views/src/Plugin/views/filter/ElasticsearchViewsFulltextSearch.php
Helper function to build Admin Summary.

File

modules/elasticsearch_connector_views/src/Plugin/views/filter/ElasticsearchViewsFulltextSearch.php, line 210

Class

ElasticsearchViewsFulltextSearch
Default implementation of the base filter plugin.

Namespace

Drupal\elasticsearch_connector_views\Plugin\views\filter

Code

public function operatorOptions($which = 'title') {
  $options = array();
  foreach ($this
    ->operators() as $id => $info) {
    $options[$id] = $info[$which];
  }
  return $options;
}