public function InOperator::operatorOptions in Zircon Profile 8.0
Same name and namespace in other branches
- 8 core/modules/views/src/Plugin/views/filter/InOperator.php \Drupal\views\Plugin\views\filter\InOperator::operatorOptions()
Build strings from the operators() for 'select' options
Overrides FilterPluginBase::operatorOptions
1 method overrides InOperator::operatorOptions()
- TaxonomyIndexTidDepth::operatorOptions in core/
modules/ taxonomy/ src/ Plugin/ views/ filter/ TaxonomyIndexTidDepth.php - Build strings from the operators() for 'select' options
File
- core/
modules/ views/ src/ Plugin/ views/ filter/ InOperator.php, line 156 - Contains \Drupal\views\Plugin\views\filter\InOperator.
Class
- InOperator
- Simple filter to handle matching of multiple options selectable via checkboxes
Namespace
Drupal\views\Plugin\views\filterCode
public function operatorOptions($which = 'title') {
$options = array();
foreach ($this
->operators() as $id => $info) {
$options[$id] = $info[$which];
}
return $options;
}