Document/Subscriber/PageTreeRouteSubscriber.php
private function hasChangedResourceSegment(PageDocument $document)
    {
        $metadata = $this->metadataFactory->getStructureMetadata('page', $document->getStructureType());

        $urlProperty = $metadata->getPropertyByTagName('sulu.rlp');
        $urlPropertyName = $this->propertyEncoder->localizedContentName(
            $urlProperty->getName(),
            $document->getLocale()
        );

        $liveNode = $this->getLiveNode($document);
        $url = $liveNode->getPropertyValueWithDefault($urlPropertyName, null);

        return $url && $url !== $document->getResourceSegment();
    }
private function hasChangedResourceSegment(PageDocument $document)
    {
        $metadata = $this->metadataFactory->getStructureMetadata('page', $document->getStructureType());

        $urlProperty = $metadata->getPropertyByTagName('sulu.rlp');
        $urlPropertyName = $this->propertyEncoder->localizedContentName(
            $urlProperty->getName(),
            $document->getLocale()
        );

        $liveNode = $this->getLiveNode($document);
        $url = $liveNode->getPropertyValueWithDefault($urlPropertyName, null);

        return $url && $url !== $document->getResourceSegment();
    }
private function hasChangedResourceSegment ( PageDocument $ document ) { $ metadata = $ this -> metadataFactory -> getStructureMetadata ( 'page' , $ document -> getStructureType ( ) ) ; $ urlProperty = $ metadata -> getPropertyByTagName ( 'sulu.rlp' ) ; $ urlPropertyName = $ this -> propertyEncoder -> localizedContentName ( $ urlProperty -> getName ( ) , $ document -> getLocale ( ) ) ; $ liveNode = $ this -> getLiveNode ( $ document ) ; $ url = $ liveNode -> getPropertyValueWithDefault ( $ urlPropertyName , null ) ; return $ url && $ url !== $ document -> getResourceSegment ( ) ; }
Returns true if the resource-segment was changed in the draft page.

@param PageDocument $document

@return bool
Returns true if the resource - segment was changed in the draft page .