コード例 #1
0
ファイル: WorkflowStageSubscriber.php プロジェクト: sulu/sulu
 /**
  * Sets the workflowstage for the copied node and all its children to test. This is done because newly copied pages
  * shouldn't be automatically published on the website.
  *
  * @param CopyEvent $event
  */
 public function setWorkflowStageToTestForCopy(CopyEvent $event)
 {
     $this->setNodeWorkflowStageToTestForCopy($event->getCopiedNode());
 }
コード例 #2
0
ファイル: PublishSubscriber.php プロジェクト: sulu/sulu
 /**
  * If a node is copied a node with the same UUID will be created in the live session.
  *
  * @param CopyEvent $event
  */
 public function copyNodeInPublicWorkspace(CopyEvent $event)
 {
     $this->copyNodeWithChildrenInPublicWorkspace($event->getCopiedNode());
 }