public function EnrollInviteEmailForm::cancelForm in Open Social 10.1.x
Same name and namespace in other branches
- 8.9 modules/social_features/social_event/modules/social_event_invite/src/Form/EnrollInviteEmailForm.php \Drupal\social_event_invite\Form\EnrollInviteEmailForm::cancelForm()
- 10.3.x modules/social_features/social_event/modules/social_event_invite/src/Form/EnrollInviteEmailForm.php \Drupal\social_event_invite\Form\EnrollInviteEmailForm::cancelForm()
- 10.0.x modules/social_features/social_event/modules/social_event_invite/src/Form/EnrollInviteEmailForm.php \Drupal\social_event_invite\Form\EnrollInviteEmailForm::cancelForm()
- 10.2.x modules/social_features/social_event/modules/social_event_invite/src/Form/EnrollInviteEmailForm.php \Drupal\social_event_invite\Form\EnrollInviteEmailForm::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/ EnrollInviteEmailForm.php, line 179
Class
- EnrollInviteEmailForm
- Class EnrollInviteForm.
Namespace
Drupal\social_event_invite\FormCode
public function cancelForm(array &$form, FormStateInterface $form_state) {
$form_state
->setRedirect('view.event_manage_enrollments.page_manage_enrollments', [
'node' => $this->routeMatch
->getRawParameter('node'),
]);
}