You are here

public function ConflictTracker::__construct in Multiversion 8

Parameters

\Drupal\Core\KeyValueStore\KeyValueFactoryInterface $key_value_factory:

\Drupal\multiversion\Workspace\WorkspaceManagerInterface $workspace_manager:

File

src/Workspace/ConflictTracker.php, line 46

Class

ConflictTracker
The Conflict Tracker service.

Namespace

Drupal\multiversion\Workspace

Code

public function __construct(KeyValueFactoryInterface $key_value_factory, WorkspaceManagerInterface $workspace_manager) {
  $this->keyValueFactory = $key_value_factory;
  $this->workspaceManager = $workspace_manager;

  // Set workspace to currently active workspace.
  $this->workspaceId = $this->workspaceManager
    ->getActiveWorkspaceId();
}