src/Sulu/Component/Content/Document/Subscriber/ResourceSegmentSubscriber.php
private function updateResourceSegmentProperty(
        NodeInterface $node,
        $resourceSegmentPropertyName,
        $parentUuid,
        $webspaceKey,
        $locale
    ) {
        $resourceLocatorStrategy = $this->resourceLocatorStrategyPool->getStrategyByWebspaceKey($webspaceKey);
        $childPart = $resourceLocatorStrategy->getChildPart($node->getPropertyValue($resourceSegmentPropertyName));

        $node->setProperty(
            $resourceSegmentPropertyName,
            $resourceLocatorStrategy->generate($childPart, $parentUuid, $webspaceKey, $locale)
        );
    }
private function updateResourceSegmentProperty(
        NodeInterface $node,
        $resourceSegmentPropertyName,
        $parentUuid,
        $webspaceKey,
        $locale
    ) {
        $resourceLocatorStrategy = $this->resourceLocatorStrategyPool->getStrategyByWebspaceKey($webspaceKey);
        $childPart = $resourceLocatorStrategy->getChildPart($node->getPropertyValue($resourceSegmentPropertyName));

        $node->setProperty(
            $resourceSegmentPropertyName,
            $resourceLocatorStrategy->generate($childPart, $parentUuid, $webspaceKey, $locale)
        );
    }
private function updateResourceSegmentProperty ( NodeInterface $ node , $ resourceSegmentPropertyName , $ parentUuid , $ webspaceKey , $ locale ) { $ resourceLocatorStrategy = $ this -> resourceLocatorStrategyPool -> getStrategyByWebspaceKey ( $ webspaceKey ) ; $ childPart = $ resourceLocatorStrategy -> getChildPart ( $ node -> getPropertyValue ( $ resourceSegmentPropertyName ) ) ; $ node -> setProperty ( $ resourceSegmentPropertyName , $ resourceLocatorStrategy -> generate ( $ childPart , $ parentUuid , $ webspaceKey , $ locale ) ) ; }
Updates the property for the resource segment on the given node.

@param NodeInterface $node
@param string $resourceSegmentPropertyName
@param string $parentUuid
@param string $webspaceKey
@param string $locale
Updates the property for the resource segment on the given node .