public function RevisionDiffFactory::get in Replication 8.2
Same name and namespace in other branches
- 8 src/RevisionDiffFactory.php \Drupal\replication\RevisionDiffFactory::get()
@inheritDoc
Overrides RevisionDiffFactoryInterface::get
File
- src/
RevisionDiffFactory.php, line 31
Class
Namespace
Drupal\replicationCode
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()];
}