function ExposedFormPluginBase::exposed_form_submit in Views (for Drupal 7) 8.3
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
- lib/
Drupal/ views/ Plugin/ views/ exposed_form/ ExposedFormPluginBase.php, line 283 - 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_formCode
function exposed_form_submit(&$form, &$form_state, &$exclude) {
if (!empty($form_state['values']['op']) && $form_state['values']['op'] == $this->options['reset_button_label']) {
$this
->reset_form($form, $form_state);
}
if (isset($form_state['pager_plugin'])) {
$form_state['pager_plugin']
->exposed_form_submit($form, $form_state, $exclude);
$exclude[] = 'pager_plugin';
}
}