You are here

public function ReplicateAccessChecker::__construct in Replicate UI 8

Creates a new ReplicateAccessChecker instance.

Parameters

\Drupal\user\Access\PermissionAccessCheck $permAccessChecker:

\Drupal\Core\Entity\EntityAccessCheck $entityAccessChecker:

File

src/ReplicateAccessChecker.php, line 33

Class

ReplicateAccessChecker
Access checker which checks entity create/view access as well a permission.

Namespace

Drupal\replicate_ui

Code

public function __construct(PermissionAccessCheck $permAccessChecker, EntityAccessCheck $entityAccessChecker) {
  $this->permAccessChecker = $permAccessChecker;
  $this->entityAccessChecker = $entityAccessChecker;
}