diff --git a/core/modules/views_ui/src/Form/Ajax/ViewsFormBase.php b/core/modules/views_ui/src/Form/Ajax/ViewsFormBase.php index a13ff72..245c995 100644 --- a/core/modules/views_ui/src/Form/Ajax/ViewsFormBase.php +++ b/core/modules/views_ui/src/Form/Ajax/ViewsFormBase.php @@ -131,7 +131,7 @@ public function getForm(ViewStorageInterface $view, $display_id, $js) { $drupal_add_js_original = _drupal_add_js(); $drupal_add_js = &drupal_static('_drupal_add_js'); $form_class = get_class($form_state['build_info']['callback_object']); - $response = views_ajax_form_wrapper($form_class, $form_state); + $response = $this->ajaxFormWrapper($form_class, $form_state); // If the form has not been submitted, or was not set for rerendering, stop. if (!$form_state['submitted'] || !empty($form_state['rerender'])) { @@ -155,7 +155,7 @@ public function getForm(ViewStorageInterface $view, $display_id, $js) { return new RedirectResponse(url($form_path, array('absolute' => TRUE))); } $form_state['path'] = $form_path; - $response = views_ajax_form_wrapper($form_class, $form_state); + $response = $this->ajaxFormWrapper($form_class, $form_state); } elseif (!$form_state['ajax']) { // if nothing on the stack, non-js forms just go back to the main view editor.