You are here

protected function WebformSubmissionWebformCategory::getApplicableWebformIds in Webform Views Integration 8.5

Get a list of webform IDs that satisfy filter criterion.

Return value

string[] Array of webform IDs that satisfy filter criterion.

1 call to WebformSubmissionWebformCategory::getApplicableWebformIds()
WebformSubmissionWebformCategory::query in src/Plugin/views/filter/WebformSubmissionWebformCategory.php
Add this filter to the query.

File

src/Plugin/views/filter/WebformSubmissionWebformCategory.php, line 92

Class

WebformSubmissionWebformCategory
Filter for webform category of a webform submission.

Namespace

Drupal\webform_views\Plugin\views\filter

Code

protected function getApplicableWebformIds() {
  $operator = $this
    ->operators()[$this->operator];
  $query = $this->entityTypeManager
    ->getStorage('webform')
    ->getQuery();
  $query
    ->condition('category', $this->value, $operator['webform_operator']);
  return array_values($query
    ->execute());
}