You are here

public function GroupRequestMembershipRejectForm::__construct in Open Social 10.2.x

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

GroupRequestMembershipRejectForm constructor.

Parameters

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

\Drupal\Core\Cache\CacheTagsInvalidatorInterface $cache_tags_invalidator: The cache tags invalidator.

\Drupal\Core\Session\AccountInterface $current_user: The current user.

\Drupal\Core\StringTranslation\TranslationInterface $string_translation: The string translation.

File

modules/social_features/social_group/modules/social_group_request/src/Form/GroupRequestMembershipRejectForm.php, line 69

Class

GroupRequestMembershipRejectForm
Provides a confirmation form before rejecting membership.

Namespace

Drupal\social_group_request\Form

Code

public function __construct(RedirectDestinationInterface $redirect_destination, CacheTagsInvalidatorInterface $cache_tags_invalidator, AccountInterface $current_user, TranslationInterface $string_translation) {
  $this->redirectDestination = $redirect_destination;
  $this->cacheTagsInvalidator = $cache_tags_invalidator;
  $this->currentUser = $current_user;
  $this
    ->setStringTranslation($string_translation);
}