public function GroupMembershipLoader::__construct in Group 8
Same name and namespace in other branches
- 2.0.x src/GroupMembershipLoader.php \Drupal\group\GroupMembershipLoader::__construct()
Constructs a new GroupTypeController.
Parameters
\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.
\Drupal\Core\Session\AccountInterface $current_user: The current user.
File
- src/
GroupMembershipLoader.php, line 46
Class
- GroupMembershipLoader
- Loader for wrapped GroupContent entities using the 'group_membership' plugin.
Namespace
Drupal\groupCode
public function __construct(EntityTypeManagerInterface $entity_type_manager, AccountInterface $current_user) {
$this->entityTypeManager = $entity_type_manager;
$this->currentUser = $current_user;
}