You are here

public function RevisionDiffFactory::get in Replication 8.2

Same name and namespace in other branches
  1. 8 src/RevisionDiffFactory.php \Drupal\replication\RevisionDiffFactory::get()

@inheritDoc

Overrides RevisionDiffFactoryInterface::get

File

src/RevisionDiffFactory.php, line 31

Class

RevisionDiffFactory

Namespace

Drupal\replication

Code

public function get(WorkspaceInterface $workspace) {
  if (!isset($this->instances[$workspace
    ->id()])) {
    $this->instances[$workspace
      ->id()] = new RevisionDiff($this->revIndex, $workspace);
  }
  return $this->instances[$workspace
    ->id()];
}