You are here

public function FriendSearchForm::friendSearchAjaxSubmit in Heartbeat 8

File

src/Form/FriendSearchForm.php, line 91

Class

FriendSearchForm
Class FriendSearchForm.

Namespace

Drupal\heartbeat\Form

Code

public function friendSearchAjaxSubmit(array &$form, FormStateInterface $form_state) {
  $ajax_response = new AjaxResponse();
  $ajax_response
    ->addCommand(new InvokeCommand(NULL, 'updateFriendView', [
    'some Var',
  ]));
  return $ajax_response;
}