You are here

public function WorkbenchModerationSubscriber::__construct in Workspace 8

Inject dependencies.

Parameters

EntityTypeManagerInterface $entity_type_manager: The entity type manager to use for checking moderation information.

ReplicatorManager $replicator_manager: The replicator manager to trigger replication on.

File

src/EventSubscriber/WorkbenchModerationSubscriber.php, line 39

Class

WorkbenchModerationSubscriber
Subscriber for workbench transitions.

Namespace

Drupal\workspace\EventSubscriber

Code

public function __construct(EntityTypeManagerInterface $entity_type_manager, ReplicatorManager $replicator_manager) {
  $this->entityTypeManager = $entity_type_manager;
  $this->replicatorManager = $replicator_manager;
}