public function ChangesFactory::get in Replication 8
Same name and namespace in other branches
- 8.2 src/ChangesFactory.php \Drupal\replication\ChangesFactory::get()
Constructs a new Changes instance.
Parameters
\Drupal\multiversion\Entity\WorkspaceInterface $workspace:
Return value
\Drupal\replication\Changes\ChangesInterface
Overrides ChangesFactoryInterface::get
File
- src/
ChangesFactory.php, line 55
Class
Namespace
Drupal\replicationCode
public function get(WorkspaceInterface $workspace) {
if (!isset($this->instances[$workspace
->id()])) {
$this->instances[$workspace
->id()] = new Changes($this->sequenceIndex, $workspace, $this->entityTypeManager, $this->serializer, $this->filterManager);
}
return $this->instances[$workspace
->id()];
}