public function WebformSubmissionSelectFilter::acceptExposedInput in Webform Views Integration 8.5
Determines if the input from a filter should change the generated query.
Parameters
array $input: The exposed data for this view.
Return value
bool TRUE if the input for this filter should be included in the view query. FALSE otherwise.
Overrides InOperator::acceptExposedInput
File
- src/
Plugin/ views/ filter/ WebformSubmissionSelectFilter.php, line 87
Class
- WebformSubmissionSelectFilter
- Select filter based on value of a webform submission.
Namespace
Drupal\webform_views\Plugin\views\filterCode
public function acceptExposedInput($input) {
$accept = parent::acceptExposedInput($input);
$identifier = $this->options['expose']['identifier'];
if ($input[$identifier] == self::ALL) {
return FALSE;
}
return $accept;
}