You are here

public function RevisionDiff::__construct in Replication 8

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

Parameters

\Drupal\multiversion\Entity\Index\RevisionIndexInterface $rev_index:

\Drupal\multiversion\Entity\WorkspaceInterface $workspace:

File

src/RevisionDiff/RevisionDiff.php, line 24

Class

RevisionDiff

Namespace

Drupal\replication\RevisionDiff

Code

public function __construct(RevisionIndexInterface $rev_index, WorkspaceInterface $workspace) {
  $this->revIndex = $rev_index;
  $this->workspaceId = $workspace
    ->id();
}