You are here

public function AllDocsFactory::get in Replication 8

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

@inheritDoc

Overrides BulkDocsFactoryInterface::get

File

src/AllDocsFactory.php, line 43

Class

AllDocsFactory

Namespace

Drupal\replication

Code

public function get(WorkspaceInterface $workspace) {
  if (!isset($this->instances[$workspace
    ->id()])) {
    $this->instances[$workspace
      ->id()] = new AllDocs($this->entityTypeManager, $this->multiversionManager, $workspace, $this->entityIndex, $this->serializer);
  }
  return $this->instances[$workspace
    ->id()];
}