function views_ui_add_ajax_wrapper
Same name and namespace in other branches
- 11.x core/modules/views_ui/admin.inc \views_ui_add_ajax_wrapper()
- 10 core/modules/views_ui/admin.inc \views_ui_add_ajax_wrapper()
- 9 core/modules/views_ui/admin.inc \views_ui_add_ajax_wrapper()
- 8.9.x core/modules/views_ui/admin.inc \views_ui_add_ajax_wrapper()
Adds a wrapper to a form region (for AJAX refreshes) after the build.
This function inserts a wrapper around the region of the form that needs to be refreshed by AJAX, based on information stored in the corresponding submit button form element.
Deprecated
in drupal:11.4.0 and is removed from drupal:13.0.0. There is no replacement for this function. Form classes can use the \Drupal\views\ViewsFormAjaxHelperTrait trait and call the addAjaxWrapper() method.
See also
https://www.drupal.org/node/3566774
File
-
core/
modules/ views_ui/ admin.inc, line 83
Code
function views_ui_add_ajax_wrapper($element, FormStateInterface $form_state) {
@trigger_error(__FUNCTION__ . '() is deprecated in drupal:11.4.0 and is removed from drupal:13.0.0. There is no replacement for this function. Form classes can use the \\Drupal\\views\\ViewsFormAjaxHelperTrait trait and call the addAjaxWrapper() method. See https://www.drupal.org/node/3566774', E_USER_DEPRECATED);
_views_ui_wrap_views_form_helper_traits()::addAjaxWrapper($element, $form_state);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.