public function ViewUI::rebuildCurrentTab in Views (for Drupal 7) 8.3
Regenerate the current tab for AJAX updates.
File
- views_ui/
lib/ Drupal/ views_ui/ ViewUI.php, line 1107 - Definition of Drupal\views_ui\ViewUI.
Class
- ViewUI
- Stores UI related temporary settings.
Namespace
Drupal\views_uiCode
public function rebuildCurrentTab(&$output, $display_id) {
if (!$this
->setDisplay('default')) {
return;
}
// Regenerate the main display area.
$build = $this
->getDisplayTab($display_id);
static::addMicroweights($build);
$output[] = ajax_command_html('#views-tab-' . $display_id, drupal_render($build));
// Regenerate the top area so changes to display names and order will appear.
$build = $this
->renderDisplayTop($display_id);
static::addMicroweights($build);
$output[] = ajax_command_replace('#views-display-top', drupal_render($build));
}