function InOperator::operator_values

3 calls to InOperator::operator_values()
InOperator::adminSummary in drupal/core/modules/views/lib/Drupal/views/Plugin/views/filter/InOperator.php
Display the filter on the administrative summary
InOperator::validate in drupal/core/modules/views/lib/Drupal/views/Plugin/views/filter/InOperator.php
Validates the handler against the complete View.
InOperator::value_form in drupal/core/modules/views/lib/Drupal/views/Plugin/views/filter/InOperator.php
Options form subform for setting options.

File

drupal/core/modules/views/lib/Drupal/views/Plugin/views/filter/InOperator.php, line 157
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_values($values = 1) {
  $options = array();
  foreach ($this
    ->operators() as $id => $info) {
    if (isset($info['values']) && $info['values'] == $values) {
      $options[] = $id;
    }
  }
  return $options;
}