You are here

public function EntityAccess::__construct in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/workspaces/src/EntityAccess.php \Drupal\workspaces\EntityAccess::__construct()
  2. 10 core/modules/workspaces/src/EntityAccess.php \Drupal\workspaces\EntityAccess::__construct()

Constructs a new EntityAccess instance.

Parameters

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

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

File

core/modules/workspaces/src/EntityAccess.php, line 44

Class

EntityAccess
Service wrapper for hooks relating to entity access control.

Namespace

Drupal\workspaces

Code

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