public function GroupMenuService::__construct in Group Menu 8
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.
\Drupal\group\GroupMembershipLoader $membership_loader: The group membership loader.
File
- src/
GroupMenuService.php, line 75
Class
- GroupMenuService
- Checks access for displaying menu pages.
Namespace
Drupal\groupmenuCode
public function __construct(EntityTypeManagerInterface $entity_type_manager, AccountInterface $current_user, GroupMembershipLoader $membership_loader) {
$this->entityTypeManager = $entity_type_manager;
$this->currentUser = $current_user;
$this->membershipLoader = $membership_loader;
}