diff --git a/core/modules/views/src/Form/ViewsExposedForm.php b/core/modules/views/src/Form/ViewsExposedForm.php index 44e7ec4b0f..ef33767c10 100644 --- a/core/modules/views/src/Form/ViewsExposedForm.php +++ b/core/modules/views/src/Form/ViewsExposedForm.php @@ -53,8 +53,9 @@ public function buildForm(array $form, FormStateInterface $form_state) { // Don't show the form when batch operations are in progress. if ($batch = batch_get() && isset($batch['current_set'])) { return [ - // Set the theme callback to be nothing to avoid errors in template_preprocess_views_exposed_form(). - '#theme' => '', + // Set required property to avoid errors in + // template_preprocess_views_exposed_form(). + '#info' => [], ]; }