src/Sulu/Component/Content/Document/Subscriber/ResourceSegmentSubscriber.php
public function updateCopiedDocument(CopyEvent $event)
    {
        $document = $event->getDocument();
        if (!$document instanceof ResourceSegmentBehavior) {
            return;
        }

        $this->updateRoute(
            $this->documentManager->find(
                $event->getCopiedPath(),
                $this->documentInspector->getLocale($document)
            ),
            false
        );
    }
public function updateCopiedDocument(CopyEvent $event)
    {
        $document = $event->getDocument();
        if (!$document instanceof ResourceSegmentBehavior) {
            return;
        }

        $this->updateRoute(
            $this->documentManager->find(
                $event->getCopiedPath(),
                $this->documentInspector->getLocale($document)
            ),
            false
        );
    }
public function updateCopiedDocument ( CopyEvent $ event ) { $ document = $ event -> getDocument ( ) ; if ( ! $ document instanceof ResourceSegmentBehavior ) { return ; } $ this -> updateRoute ( $ this -> documentManager -> find ( $ event -> getCopiedPath ( ) , $ this -> documentInspector -> getLocale ( $ document ) ) , false ) ; }
Copy the routes for all localization of the document in the event.

@param CopyEvent $event
Copy the routes for all localization of the document in the event .