Document/Subscriber/ArticleSubscriber.php
public function persistPageDataOnReorder(ReorderEvent $event)
    {
        $document = $event->getDocument();
        if (!$document instanceof ArticlePageDocument) {
            return;
        }

        $document = $document->getParent();
        $node = $this->documentInspector->getNode($document);

        $this->setPageData($document, $node, $document->getLocale());

        $document->setWorkflowStage(WorkflowStage::TEST);
        $this->documentManager->persist($document, $this->documentInspector->getLocale($document));

        $this->documents[$document->getUuid()] = [
            'uuid' => $document->getUuid(),
            'locale' => $document->getLocale(),
        ];
    }
public function persistPageDataOnReorder(ReorderEvent $event)
    {
        $document = $event->getDocument();
        if (!$document instanceof ArticlePageDocument) {
            return;
        }

        $document = $document->getParent();
        $node = $this->documentInspector->getNode($document);

        $this->setPageData($document, $node, $document->getLocale());

        $document->setWorkflowStage(WorkflowStage::TEST);
        $this->documentManager->persist($document, $this->documentInspector->getLocale($document));

        $this->documents[$document->getUuid()] = [
            'uuid' => $document->getUuid(),
            'locale' => $document->getLocale(),
        ];
    }
public function persistPageDataOnReorder ( ReorderEvent $ event ) { $ document = $ event -> getDocument ( ) ; if ( ! $ document instanceof ArticlePageDocument ) { return ; } $ document = $ document -> getParent ( ) ; $ node = $ this -> documentInspector -> getNode ( $ document ) ; $ this -> setPageData ( $ document , $ node , $ document -> getLocale ( ) ) ; $ document -> setWorkflowStage ( WorkflowStage :: TEST ) ; $ this -> documentManager -> persist ( $ document , $ this -> documentInspector -> getLocale ( $ document ) ) ; $ this -> documents [ $ document -> getUuid ( ) ] = [ 'uuid' => $ document -> getUuid ( ) , 'locale' => $ document -> getLocale ( ) , ] ; }
Persist page-data for reordering children.

@param ReorderEvent $event
Persist page - data for reordering children .