You are here

public function QuickTabsInstanceEditForm::ajaxFormCallback in Quick Tabs 8.3

Ajax callback for the add tab and remove tab buttons.

Returns the table rows.

File

src/Form/QuickTabsInstanceEditForm.php, line 236

Class

QuickTabsInstanceEditForm
Class QuickTabsInstanceEditForm.

Namespace

Drupal\quicktabs\Form

Code

public function ajaxFormCallback(array &$form, FormStateInterface $form_state) {

  // Instantiate an AjaxResponse Object to return.
  $ajax_response = new AjaxResponse();
  $ajax_response
    ->addCommand(new HtmlCommand('#configuration-data-wrapper', $form['configuration_data_wrapper']['configuration_data']));
  return $ajax_response;
}