You are here

public function RedhenDedupeMergeForm::redhenDedupeMergeFormCallback in RedHen CRM 8

Ajax callback for redhen_dedupe_merge_form().

File

modules/redhen_dedupe/src/Form/RedhenDedupeMergeForm.php, line 272

Class

RedhenDedupeMergeForm
Form controller for Dedupe merge tool.

Namespace

Drupal\redhen_dedupe\Form

Code

public function redhenDedupeMergeFormCallback(array &$form, FormStateInterface $form_state) {
  $ajax_response = new AjaxResponse();
  $ajax_response
    ->addCommand(new ReplaceCommand('#redhen_dedupe_merge_data', \Drupal::service('renderer')
    ->render($form['merge_data'])));
  return $ajax_response;
}