public static function Replication::generateReplicationId in Workspace 8
Generates a replication ID.
Parameters
\Drupal\workspace\WorkspacePointerInterface $source: The source workspace pointer.
\Drupal\workspace\WorkspacePointerInterface $target: The target workspace pointer.
Return value
string The replication ID.
File
- src/
Entity/ Replication.php, line 336
Class
- Replication
- Defines the Replication entity.
Namespace
Drupal\workspace\EntityCode
public static function generateReplicationId(WorkspacePointerInterface $source, WorkspacePointerInterface $target) {
return \md5($source
->getWorkspace()
->getMachineName() . $target
->getWorkspace()
->getMachineName());
}