You are here

public function GroupRequestController::__construct in Open Social 10.1.x

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

GroupRequestController constructor.

Parameters

\Drupal\Core\Form\FormBuilderInterface $form_builder: The form builder.

\Drupal\Core\Entity\EntityFormBuilderInterface $entity_form_builder: The entity form builder.

\Drupal\Core\Messenger\MessengerInterface $messenger: The messenger.

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

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

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

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

File

modules/social_features/social_group/modules/social_group_request/src/Controller/GroupRequestController.php, line 54

Class

GroupRequestController
Returns responses for Group request routes.

Namespace

Drupal\social_group_request\Controller

Code

public function __construct(FormBuilderInterface $form_builder, EntityFormBuilderInterface $entity_form_builder, MessengerInterface $messenger, CacheTagsInvalidatorInterface $cache_tags_invalidator, TranslationInterface $string_translation, EntityTypeManagerInterface $entity_type_manager, AccountInterface $current_user) {
  $this->formBuilder = $form_builder;
  $this->entityFormBuilder = $entity_form_builder;
  $this
    ->setMessenger($messenger);
  $this->cacheTagsInvalidator = $cache_tags_invalidator;
  $this
    ->setStringTranslation($string_translation);
  $this->entityTypeManager = $entity_type_manager;
  $this->currentUser = $current_user;
}