You are here

public function GroupMembershipController::__construct in Group 8

Same name and namespace in other branches
  1. 2.0.x src/Controller/GroupMembershipController.php \Drupal\group\Controller\GroupMembershipController::__construct()

Constructs a new GroupMembershipController.

Parameters

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

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

File

src/Controller/GroupMembershipController.php, line 42

Class

GroupMembershipController
Provides group membership route controllers.

Namespace

Drupal\group\Controller

Code

public function __construct(AccountInterface $current_user, EntityFormBuilderInterface $entity_form_builder) {
  $this->currentUser = $current_user;
  $this->entityFormBuilder = $entity_form_builder;
}