function views_ui_ajax_update_form
views_ui_ajax_update_form($form, FormStateInterface $form_state)
Updates a part of the add view form via AJAX.
Return value
The part of the form that has changed.
File
- core/modules/views_ui/admin.inc, line 188
- Provides the Views' administrative interface.
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']); }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!modules!views_ui!admin.inc/function/views_ui_ajax_update_form/8.1.x