public function WebformSubmissionFieldFilter::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 FilterPluginBase::acceptExposedInput
File
- src/
Plugin/ views/ filter/ WebformSubmissionFieldFilter.php, line 176
Class
- WebformSubmissionFieldFilter
- Filter based on value of a webform submission.
Namespace
Drupal\webform_views\Plugin\views\filterCode
public function acceptExposedInput($input) {
if (parent::acceptExposedInput($input)) {
if (empty($this->options['exposed'])) {
return TRUE;
}
if (!empty($this->options['expose']['identifier'])) {
$value = $input[$this->options['expose']['identifier']];
return (bool) $value;
}
}
return FALSE;
}