function FilterPluginBase::submitOptionsForm

Same name in other branches
  1. 9 core/modules/views/src/Plugin/views/filter/FilterPluginBase.php \Drupal\views\Plugin\views\filter\FilterPluginBase::submitOptionsForm()
  2. 10 core/modules/views/src/Plugin/views/filter/FilterPluginBase.php \Drupal\views\Plugin\views\filter\FilterPluginBase::submitOptionsForm()
  3. 11.x 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);
    }
}

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