public function InOperator::acceptExposedInput 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::acceptExposedInput()
Check to see if input from the exposed filters should change the behavior of this filter.
Overrides FilterPluginBase::acceptExposedInput
2 calls to InOperator::acceptExposedInput()
- Name::acceptExposedInput in core/
modules/ user/ src/ Plugin/ views/ filter/ Name.php - Check to see if input from the exposed filters should change the behavior of this filter.
- TaxonomyIndexTid::acceptExposedInput in core/
modules/ taxonomy/ src/ Plugin/ views/ filter/ TaxonomyIndexTid.php - Check to see if input from the exposed filters should change the behavior of this filter.
2 methods override InOperator::acceptExposedInput()
- Name::acceptExposedInput in core/
modules/ user/ src/ Plugin/ views/ filter/ Name.php - Check to see if input from the exposed filters should change the behavior of this filter.
- TaxonomyIndexTid::acceptExposedInput in core/
modules/ taxonomy/ src/ Plugin/ views/ filter/ TaxonomyIndexTid.php - Check to see if input from the exposed filters should change the behavior of this filter.
File
- core/
modules/ views/ src/ Plugin/ views/ filter/ InOperator.php, line 290 - 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 acceptExposedInput($input) {
// A very special override because the All state for this type of
// filter could have a default:
if (empty($this->options['exposed'])) {
return TRUE;
}
// If this is non-multiple and non-required, then this filter will
// participate, but using the default settings, *if* 'limit is true.
if (empty($this->options['expose']['multiple']) && empty($this->options['expose']['required']) && !empty($this->options['expose']['limit'])) {
$identifier = $this->options['expose']['identifier'];
if ($input[$identifier] == 'All') {
return TRUE;
}
}
return parent::acceptExposedInput($input);
}