You are here

public function BulkDocsFactory::get in Replication 8.2

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

@inheritDoc

Overrides BulkDocsFactoryInterface::get

File

src/BulkDocsFactory.php, line 82

Class

BulkDocsFactory

Namespace

Drupal\replication

Code

public function get(WorkspaceInterface $workspace) {
  if (!isset($this->instances[$workspace
    ->id()])) {
    $this->instances[$workspace
      ->id()] = new BulkDocs($this->workspaceManager, $workspace, $this->uuidIndex, $this->revIndex, $this->entityTypeManager, $this->lock, $this->logger, $this->state);
  }
  return $this->instances[$workspace
    ->id()];
}