public function WebformSubmissionWebformCategory::query in Webform Views Integration 8.5
Add this filter to the query.
Due to the nature of fapi, the value and the operator have an unintended level of indirection. You will find them in $this->operator and $this->value respectively.
Overrides StringFilter::query
File
- src/
Plugin/ views/ filter/ WebformSubmissionWebformCategory.php, line 64
Class
- WebformSubmissionWebformCategory
- Filter for webform category of a webform submission.
Namespace
Drupal\webform_views\Plugin\views\filterCode
public function query() {
$webform_ids = $this
->getApplicableWebformIds();
if (empty($webform_ids)) {
// Since no webforms were matched. Put a condition that yields FALSE.
$this->query
->addWhereExpression($this->options['group'], '1 = 0');
}
else {
$this
->ensureMyTable();
$this->query
->addWhere($this->options['group'], "{$this->tableAlias}.{$this->realField}", $webform_ids, 'IN');
}
}