You are here

public static function WebformSubmissionFieldFilter::processValueForm in Webform Views Integration 8.5

Form process for ::valueForm() method.

File

src/Plugin/views/filter/WebformSubmissionFieldFilter.php, line 238

Class

WebformSubmissionFieldFilter
Filter based on value of a webform submission.

Namespace

Drupal\webform_views\Plugin\views\filter

Code

public static function processValueForm($element, FormStateInterface $form_state, $form) {

  // Store the location of value form within the whole $form so ajax callback
  // has better time finding it.
  $form_state
    ->set([
    'webform_views',
    'filter_value_form_array_parents',
  ], $element['#array_parents']);
  return $element;
}