You are here

public function ReplicationAccessControlHandler::__construct in Deploy - Content Staging 8

Constructs a NodeAccessControlHandler object.

Parameters

\Drupal\Core\Entity\EntityTypeInterface $entity_type: The entity type definition.

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

Overrides EntityAccessControlHandler::__construct

File

src/ReplicationAccessControlHandler.php, line 50

Class

ReplicationAccessControlHandler
ReplicationAccessControlHandler class.

Namespace

Drupal\deploy

Code

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