protected function InOperator::operatorValues in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/views/src/Plugin/views/filter/InOperator.php \Drupal\views\Plugin\views\filter\InOperator::operatorValues()
3 calls to InOperator::operatorValues()
- InOperator::adminSummary in core/
modules/ views/ src/ Plugin/ views/ filter/ InOperator.php - Display the filter on the administrative summary
- InOperator::validate in core/
modules/ views/ src/ Plugin/ views/ filter/ InOperator.php - Validate that the plugin is correct and can be saved.
- InOperator::valueForm in core/
modules/ views/ src/ Plugin/ views/ filter/ InOperator.php - Options form subform for setting options.
File
- core/
modules/ views/ src/ Plugin/ views/ filter/ InOperator.php, line 165 - 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
protected function operatorValues($values = 1) {
$options = array();
foreach ($this
->operators() as $id => $info) {
if (isset($info['values']) && $info['values'] == $values) {
$options[] = $id;
}
}
return $options;
}