You are here

public function EntityRevisionRouteAccessChecker::__construct in Entity API 8

Same name and namespace in other branches
  1. 8.0 src/Access/EntityRevisionRouteAccessChecker.php \Drupal\entity\Access\EntityRevisionRouteAccessChecker::__construct()

Creates a new EntityRevisionRouteAccessChecker instance.

Parameters

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

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

File

src/Access/EntityRevisionRouteAccessChecker.php, line 46

Class

EntityRevisionRouteAccessChecker
Checks access to a entity revision.

Namespace

Drupal\entity\Access

Code

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