You are here

function InOperator::operator_options in Views (for Drupal 7) 8.3

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

Overrides FilterPluginBase::operator_options

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

File

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;
}