public function ExposedFormPluginBase::exposedFormSubmit

This function is executed when exposed form is submited.

Parameters

$form: Nested array of form elements that comprise the form.

$form_state: A keyed array containing the current state of the form.

$exclude: Nested array of keys to exclude of insert into $view->exposed_raw_input

File

drupal/core/modules/views/lib/Drupal/views/Plugin/views/exposed_form/ExposedFormPluginBase.php, line 273
Definition of Drupal\views\Plugin\views\exposed_form\ExposedFormPluginBase.

Class

ExposedFormPluginBase
The base plugin to handle exposed filter forms.

Namespace

Drupal\views\Plugin\views\exposed_form

Code

public function exposedFormSubmit(&$form, &$form_state, &$exclude) {
  if (!empty($form_state['values']['op']) && $form_state['values']['op'] == $this->options['reset_button_label']) {
    $this
      ->resetForm($form, $form_state);
  }
  if (isset($form_state['pager_plugin'])) {
    $form_state['pager_plugin']
      ->exposedFormSubmit($form, $form_state, $exclude);
    $exclude[] = 'pager_plugin';
  }
}