You are here

public function HeartbeatFeedForm::updateFeed in Heartbeat 8

Parameters

array $form:

FormStateInterface $form_state:

Return value

AjaxResponse

File

src/Form/HeartbeatFeedForm.php, line 128

Class

HeartbeatFeedForm
Class HeartbeatFeedForm.

Namespace

Drupal\heartbeat\Form

Code

public function updateFeed(array &$form, FormStateInterface $form_state) {
  $response = new AjaxResponse();
  $response
    ->addCommand(new SelectFeedCommand($form_state
    ->getValue('feedtabs')));
  return $response;
}