You are here

public function FilterPluginBase::submitOptionsForm in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/views/src/Plugin/views/filter/FilterPluginBase.php \Drupal\views\Plugin\views\filter\FilterPluginBase::submitOptionsForm()

Simple submit handler

Overrides PluginBase::submitOptionsForm

File

core/modules/views/src/Plugin/views/filter/FilterPluginBase.php, line 262

Class

FilterPluginBase
Base class for Views filters handler plugins.

Namespace

Drupal\views\Plugin\views\filter

Code

public function submitOptionsForm(&$form, FormStateInterface $form_state) {

  // Do not store these values.
  $form_state
    ->unsetValue('expose_button');
  $form_state
    ->unsetValue('group_button');
  if (!$this
    ->isAGroup()) {
    $this
      ->operatorSubmit($form, $form_state);
    $this
      ->valueSubmit($form, $form_state);
  }
  if (!empty($this->options['exposed'])) {
    $this
      ->submitExposeForm($form, $form_state);
  }
  if ($this
    ->isAGroup()) {
    $this
      ->buildGroupSubmit($form, $form_state);
  }
}