You are here

public function EnrollInviteUserForm::cancelForm in Open Social 8.9

Same name and namespace in other branches
  1. 10.3.x modules/social_features/social_event/modules/social_event_invite/src/Form/EnrollInviteUserForm.php \Drupal\social_event_invite\Form\EnrollInviteUserForm::cancelForm()
  2. 10.0.x modules/social_features/social_event/modules/social_event_invite/src/Form/EnrollInviteUserForm.php \Drupal\social_event_invite\Form\EnrollInviteUserForm::cancelForm()
  3. 10.1.x modules/social_features/social_event/modules/social_event_invite/src/Form/EnrollInviteUserForm.php \Drupal\social_event_invite\Form\EnrollInviteUserForm::cancelForm()
  4. 10.2.x modules/social_features/social_event/modules/social_event_invite/src/Form/EnrollInviteUserForm.php \Drupal\social_event_invite\Form\EnrollInviteUserForm::cancelForm()

Cancel form taking you back to an event.

Parameters

array $form: An associative array containing the structure of the form.

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

File

modules/social_features/social_event/modules/social_event_invite/src/Form/EnrollInviteUserForm.php, line 110

Class

EnrollInviteUserForm
Class EnrollInviteForm.

Namespace

Drupal\social_event_invite\Form

Code

public function cancelForm(array &$form, FormStateInterface $form_state) {
  $form_state
    ->setRedirect('view.event_manage_enrollments.page_manage_enrollments', [
    'node' => $this->routeMatch
      ->getRawParameter('node'),
  ]);
}