You are here

public function DisclaimerEmailMatchForm::leaveForm in Disclaimer 8

File

src/Form/DisclaimerEmailMatchForm.php, line 145

Class

DisclaimerEmailMatchForm
Class DisclaimerEmailMatchForm.

Namespace

Drupal\disclaimer\Form

Code

public function leaveForm(array &$form, FormStateInterface $form_state) {
  $this
    ->populateSettings($form, $form_state);
  $response = new AjaxResponse();
  $response
    ->addCommand(new RedirectCommand($this->blockSettings['redirect']));
  return $response;
}