You are here

public function GroupRequestMembershipRequestForm::__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/GroupRequestMembershipRequestForm.php \Drupal\social_group_request\Form\GroupRequestMembershipRequestForm::__construct()
  2. 10.3.x modules/social_features/social_group/modules/social_group_request/src/Form/GroupRequestMembershipRequestForm.php \Drupal\social_group_request\Form\GroupRequestMembershipRequestForm::__construct()
  3. 10.0.x modules/social_features/social_group/modules/social_group_request/src/Form/GroupRequestMembershipRequestForm.php \Drupal\social_group_request\Form\GroupRequestMembershipRequestForm::__construct()
  4. 10.1.x modules/social_features/social_group/modules/social_group_request/src/Form/GroupRequestMembershipRequestForm.php \Drupal\social_group_request\Form\GroupRequestMembershipRequestForm::__construct()

GroupRequestMembershipRejectForm constructor.

Parameters

\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.

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.

File

modules/social_features/social_group/modules/social_group_request/src/Form/GroupRequestMembershipRequestForm.php, line 67

Class

GroupRequestMembershipRequestForm
Provides a form to request group membership.

Namespace

Drupal\social_group_request\Form

Code

public function __construct(CacheTagsInvalidatorInterface $cache_tags_invalidator, AccountInterface $current_user, TranslationInterface $string_translation, EntityTypeManagerInterface $entity_type_manager) {
  $this->cacheTagsInvalidator = $cache_tags_invalidator;
  $this->currentUser = $current_user;
  $this
    ->setStringTranslation($string_translation);
  $this->entityTypeManager = $entity_type_manager;
}