You are here

public function GroupRevisionCheck::__construct in Group 2.0.x

Same name and namespace in other branches
  1. 8 src/Entity/Access/GroupRevisionCheck.php \Drupal\group\Entity\Access\GroupRevisionCheck::__construct()

Constructs a new GroupRevisionCheck.

Parameters

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

\Drupal\Core\Routing\RouteMatchInterface $route_match: The currently active route match object.

File

src/Entity/Access/GroupRevisionCheck.php, line 48

Class

GroupRevisionCheck
Checks access to a group revision.

Namespace

Drupal\group\Entity\Access

Code

public function __construct(EntityTypeManagerInterface $entity_type_manager, RouteMatchInterface $route_match) {
  $this->entityTypeManager = $entity_type_manager;
  $this->routeMatch = $route_match;
}