function FilterPluginBase::submitOptionsForm

Simple submit handler.

Overrides PluginBase::submitOptionsForm

File

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

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);
  }
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.