function InOperator::operator_options

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

Overrides FilterPluginBase::operator_options

1 method overrides InOperator::operator_options()
TaxonomyIndexTidDepth::operator_options in drupal/core/modules/taxonomy/lib/Drupal/taxonomy/Plugin/views/filter/TaxonomyIndexTidDepth.php
Build strings from the operators() for 'select' options

File

drupal/core/modules/views/lib/Drupal/views/Plugin/views/filter/InOperator.php, line 148
Definition of Drupal\views\Plugin\views\filter\InOperator.

Class

InOperator
Simple filter to handle matching of multiple options selectable via checkboxes

Namespace

Drupal\views\Plugin\views\filter

Code

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