function views_ui_ajax_update_form
Same name and namespace in other branches
- 9 core/modules/views_ui/admin.inc \views_ui_ajax_update_form()
- 8.9.x core/modules/views_ui/admin.inc \views_ui_ajax_update_form()
- 10 core/modules/views_ui/admin.inc \views_ui_ajax_update_form()
Updates a part of the add view form via AJAX.
Return value
array The part of the form that has changed.
1 string reference to 'views_ui_ajax_update_form'
- views_ui_add_ajax_trigger in core/
modules/ views_ui/ admin.inc - Converts a form element in the add view wizard to be AJAX-enabled.
File
-
core/
modules/ views_ui/ admin.inc, line 188
Code
function views_ui_ajax_update_form($form, FormStateInterface $form_state) {
// The region that needs to be updated was stored in a property of the
// triggering element by views_ui_add_ajax_trigger(), so all we have to do is
// retrieve that here.
return NestedArray::getValue($form, $form_state->getTriggeringElement()['#views_ui_ajax_data']['refresh_parents']);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.