You are here

public function GroupCheck::__construct in Organic groups 8

Constructs a GroupCheck object.

Parameters

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

\Drupal\og\OgAccessInterface $og_access: The OG access service.

File

src/Access/GroupCheck.php, line 46

Class

GroupCheck
Determines access to routes based on group permissions for the current user.

Namespace

Drupal\og\Access

Code

public function __construct(EntityTypeManagerInterface $entity_type_manager, OgAccessInterface $og_access) {
  $this->entityTypeManager = $entity_type_manager;
  $this->ogAccess = $og_access;
}