public function ExposedFormPluginBase::exposedFormSubmit in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/views/src/Plugin/views/exposed_form/ExposedFormPluginBase.php \Drupal\views\Plugin\views\exposed_form\ExposedFormPluginBase::exposedFormSubmit()
This function is executed when exposed form is submitted.
Parameters
$form: Nested array of form elements that comprise the form.
$form_state: The current state of the form.
$exclude: Nested array of keys to exclude of insert into $view->exposed_raw_input
File
- core/
modules/ views/ src/ Plugin/ views/ exposed_form/ ExposedFormPluginBase.php, line 298 - Contains \Drupal\views\Plugin\views\exposed_form\ExposedFormPluginBase.
Class
- ExposedFormPluginBase
- Base class for Views exposed filter form plugins.
Namespace
Drupal\views\Plugin\views\exposed_formCode
public function exposedFormSubmit(&$form, FormStateInterface $form_state, &$exclude) {
if (!$form_state
->isValueEmpty('op') && $form_state
->getValue('op') == $this->options['reset_button_label']) {
$this
->resetForm($form, $form_state);
}
if ($pager_plugin = $form_state
->get('pager_plugin')) {
$pager_plugin
->exposedFormSubmit($form, $form_state, $exclude);
$exclude[] = 'pager_plugin';
}
}