You are here

public function EnrollRequestDeclineForm::__construct in Open Social 8.9

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

EnrollRequestDeclineForm constructor.

Parameters

\Drupal\Core\Routing\RedirectDestinationInterface $redirect_destination: The redirect interface.

\Drupal\Core\Session\AccountInterface $current_user: The account interface.

\Drupal\social_event\EventEnrollmentStatusHelper $enrollmentStatusHelper: The enrollment status helper.

File

modules/social_features/social_event/src/Form/EnrollRequestDeclineForm.php, line 67

Class

EnrollRequestDeclineForm
Class EnrollRequestDeclineForm.

Namespace

Drupal\social_event\Form

Code

public function __construct(RedirectDestinationInterface $redirect_destination, AccountInterface $current_user, EventEnrollmentStatusHelper $enrollmentStatusHelper) {
  $this->redirectDestination = $redirect_destination;
  $this->currentUser = $current_user;
  $this->eventInviteStatus = $enrollmentStatusHelper;
}