You are here

public function VotingApiReactionForm::ajaxSubmitForm in Voting API Reaction 8

Ajax submit handler.

Parameters

array $form: The form.

\Drupal\Core\Form\FormStateInterface $form_state: The form state.

Return value

array Return form.

File

src/Form/VotingApiReactionForm.php, line 267

Class

VotingApiReactionForm
Form implementation of the reaction form used in field formatter.

Namespace

Drupal\votingapi_reaction\Form

Code

public function ajaxSubmitForm(array $form, FormStateInterface $form_state) {
  $this
    ->submitForm($form, $form_state);
  return $form;
}