You are here

public function EntityAccess::__construct in Workspace 8

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

Constructs a new EntityAccess.

Parameters

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

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

int $default_workspace: The ID of the default workspace.

File

src/EntityAccess.php, line 46

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, $default_workspace) {
  $this->entityTypeManager = $entity_type_manager;
  $this->workspaceManager = $workspace_manager;
  $this->defaultWorkspaceId = $default_workspace;
}