src/Sulu/Bundle/PageBundle/Document/Subscriber/PublishSubscriber.php
public function reorderNodeInPublicWorkspace(ReorderEvent $event)
    {
        $node = $this->getLiveNode($event->getDocument());

        $this->nodeHelper->reorder($node, $event->getDestId());

        // FIXME duplicating logic of OrderSubscriber, maybe move to NodeHelper?
        $count = 1;
        foreach ($node->getParent()->getNodes() as $childNode) {
            $childNode->setProperty($this->propertyEncoder->systemName('order'), $count * 10);
            ++$count;
        }
    }
public function reorderNodeInPublicWorkspace(ReorderEvent $event)
    {
        $node = $this->getLiveNode($event->getDocument());

        $this->nodeHelper->reorder($node, $event->getDestId());

        // FIXME duplicating logic of OrderSubscriber, maybe move to NodeHelper?
        $count = 1;
        foreach ($node->getParent()->getNodes() as $childNode) {
            $childNode->setProperty($this->propertyEncoder->systemName('order'), $count * 10);
            ++$count;
        }
    }
public function reorderNodeInPublicWorkspace ( ReorderEvent $ event ) { $ node = $ this -> getLiveNode ( $ event -> getDocument ( ) ) ; $ this -> nodeHelper -> reorder ( $ node , $ event -> getDestId ( ) ) ; // FIXME duplicating logic of OrderSubscriber, maybe move to NodeHelper? $ count = 1 ; foreach ( $ node -> getParent ( ) -> getNodes ( ) as $ childNode ) { $ childNode -> setProperty ( $ this -> propertyEncoder -> systemName ( 'order' ) , $ count * 10 ) ; ++ $ count ; } }
Reordering is also not draftable, and therefore also immediately applied to the live session.

@param ReorderEvent $event
Reordering is also not draftable and therefore also immediately applied to the live session .