You are here

public function EntityAccess::__construct in Workspace 8.2

Same name and namespace in other branches
  1. 8 src/EntityAccess.php \Drupal\workspace\EntityAccess::__construct()

Constructs a new EntityAccess instance.

Parameters

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

\Drupal\workspace\WorkspaceManagerInterface $workspace_manager: The workspace manager service.

File

src/EntityAccess.php, line 44

Class

EntityAccess
Service wrapper for hooks relating to entity access control.

Namespace

Drupal\workspace

Code

public function __construct(EntityTypeManagerInterface $entity_type_manager, WorkspaceManagerInterface $workspace_manager) {
  $this->entityTypeManager = $entity_type_manager;
  $this->workspaceManager = $workspace_manager;
}