You are here

public function TaxonomyIndexTidDepth::operatorOptions in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/taxonomy/src/Plugin/views/filter/TaxonomyIndexTidDepth.php \Drupal\taxonomy\Plugin\views\filter\TaxonomyIndexTidDepth::operatorOptions()
  2. 10 core/modules/taxonomy/src/Plugin/views/filter/TaxonomyIndexTidDepth.php \Drupal\taxonomy\Plugin\views\filter\TaxonomyIndexTidDepth::operatorOptions()

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

Overrides InOperator::operatorOptions

File

core/modules/taxonomy/src/Plugin/views/filter/TaxonomyIndexTidDepth.php, line 21

Class

TaxonomyIndexTidDepth
Filter handler for taxonomy terms with depth.

Namespace

Drupal\taxonomy\Plugin\views\filter

Code

public function operatorOptions($which = 'title') {
  return [
    'or' => $this
      ->t('Is one of'),
  ];
}