Regenerate the current tab for AJAX updates.
public function rebuildCurrentTab(ViewUI $view, &$output, $display_id) {
$view->displayID = $display_id;
if (!$view
->get('executable')
->setDisplay('default')) {
return;
}
// Regenerate the main display area.
$build = $this
->getDisplayTab($view);
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($view);
static::addMicroweights($build);
$output[] = ajax_command_replace('#views-display-top', drupal_render($build));
}