public function ExposedFormPluginBase::exposedFormValidate in Drupal 10
Same name and namespace in other branches
- 8 core/modules/views/src/Plugin/views/exposed_form/ExposedFormPluginBase.php \Drupal\views\Plugin\views\exposed_form\ExposedFormPluginBase::exposedFormValidate()
- 9 core/modules/views/src/Plugin/views/exposed_form/ExposedFormPluginBase.php \Drupal\views\Plugin\views\exposed_form\ExposedFormPluginBase::exposedFormValidate()
Validates the exposed form submission.
Parameters
array $form: An associative array containing the structure of the form.
\Drupal\Core\Form\FormStateInterface $form_state: The current state of the form.
Overrides ExposedFormPluginInterface::exposedFormValidate
See also
\Drupal\views\Form\ViewsExposedForm::validateForm()
File
- core/modules/ views/ src/ Plugin/ views/ exposed_form/ ExposedFormPluginBase.php, line 300 
Class
- ExposedFormPluginBase
- Base class for Views exposed filter form plugins.
Namespace
Drupal\views\Plugin\views\exposed_formCode
public function exposedFormValidate(&$form, FormStateInterface $form_state) {
  if ($pager_plugin = $form_state
    ->get('pager_plugin')) {
    $pager_plugin
      ->exposedFormValidate($form, $form_state);
  }
}