You are here

protected function WebformSubmissionCompositeFieldFilter::getWebformElement in Webform Views Integration 8.5

Retrieve webform element on which this filter is set up.

Return value

array Webform element on which this filter is set up

Overrides WebformSubmissionFieldFilter::getWebformElement

File

src/Plugin/views/filter/WebformSubmissionCompositeFieldFilter.php, line 12

Class

WebformSubmissionCompositeFieldFilter
Filter based on value of a composite of a webform submission.

Namespace

Drupal\webform_views\Plugin\views\filter

Code

protected function getWebformElement() {
  $element = parent::getWebformElement();

  // Nest into the sub-element.
  $element = $element['#webform_composite_elements'][$this->definition['webform_submission_property']];
  return $element;
}