/**
  * @param MoveEvent $event
  */
 public function handleMove(MoveEvent $event)
 {
     $document = $event->getDocument();
     $node = $this->documentRegistry->getNodeForDocument($document);
     $this->nodeManager->move($node->getPath(), $event->getDestId(), $event->getDestName());
 }
Exemplo n.º 2
0
 /**
  * Since moving is not draftable the node will also be moved in the live session immediately.
  *
  * @param MoveEvent $event
  */
 public function moveNodeInPublicWorkspace(MoveEvent $event)
 {
     $liveNode = $this->getLiveNode($event->getDocument());
     $this->nodeHelper->move($liveNode, $event->getDestId(), $event->getDestName());
 }