/** * Publishes the content of this workspace to another workspace. * * The specified workspace must be a base workspace of this workspace. * * @param Workspace $targetWorkspace The workspace to publish to * @return void * @api */ public function publish(Workspace $targetWorkspace) { $sourceNodes = $this->publishingService->getUnpublishedNodes($this); $this->publishNodes($sourceNodes, $targetWorkspace); }