You are here

public function ReplicatorInterface::replicate in Workspace 8

Perform the replication from the source to target workspace.

Parameters

\Drupal\workspace\WorkspacePointerInterface $source: The workspace to replicate from.

\Drupal\workspace\WorkspacePointerInterface $target: The workspace to replicate to.

mixed $task: Optional information that defines the replication task to perform.

Return value

\Drupal\replication\Entity\ReplicationLog The replication log entry.

2 methods override ReplicatorInterface::replicate()
InternalReplicator::replicate in src/InternalReplicator.php
Perform the replication from the source to target workspace.
ReplicatorManager::replicate in src/ReplicatorManager.php
Perform the replication from the source to target workspace.

File

src/ReplicatorInterface.php, line 36

Class

ReplicatorInterface
Defines an interface for Replicator plugins.

Namespace

Drupal\workspace

Code

public function replicate(WorkspacePointerInterface $source, WorkspacePointerInterface $target, $task = NULL);