interface ReplicatorInterface in Workspace 8
Defines an interface for Replicator plugins.
Hierarchy
- interface \Drupal\workspace\ReplicatorInterface
Expanded class hierarchy of ReplicatorInterface
All classes that implement ReplicatorInterface
1 file declares its use of ReplicatorInterface
- UpdateForm.php in src/
Form/ UpdateForm.php
File
- src/
ReplicatorInterface.php, line 8
Namespace
Drupal\workspaceView source
interface ReplicatorInterface {
/**
* Determine if the replicator applies to the given workspaces.
*
* @param \Drupal\workspace\WorkspacePointerInterface $source
* The workspace to replicate from.
* @param \Drupal\workspace\WorkspacePointerInterface $target
* The workspace to replicate to.
*
* @return bool
* Returns true if this replicator applies.
*/
public function applies(WorkspacePointerInterface $source, WorkspacePointerInterface $target);
/**
* Perform the replication from the source to target workspace.
*
* @param \Drupal\workspace\WorkspacePointerInterface $source
* The workspace to replicate from.
* @param \Drupal\workspace\WorkspacePointerInterface $target
* The workspace to replicate to.
* @param mixed $task
* Optional information that defines the replication task to perform.
*
* @return \Drupal\replication\Entity\ReplicationLog
* The replication log entry.
*/
public function replicate(WorkspacePointerInterface $source, WorkspacePointerInterface $target, $task = NULL);
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ReplicatorInterface:: |
public | function | Determine if the replicator applies to the given workspaces. | 2 |
ReplicatorInterface:: |
public | function | Perform the replication from the source to target workspace. | 2 |