src/Sulu/Bundle/PageBundle/Command/WebspaceCopyCommand.php
protected function updateSinglePageSelection(
        array &$structureArray,
        PropertyMetadata $property,
        $localeSource,
        $localeDestination
    ) {
        if (!array_key_exists($property->getName(), $structureArray) || !$structureArray[$property->getName()]) {
            return;
        }

        $targetDocumentDestination = $this->getTargetDocumentDestination(
            $structureArray[$property->getName()],
            $localeSource,
            $localeDestination
        );

        if (!$targetDocumentDestination) {
            return;
        }

        $structureArray[$property->getName()] = $targetDocumentDestination->getUuid();
    }
protected function updateSinglePageSelection(
        array &$structureArray,
        PropertyMetadata $property,
        $localeSource,
        $localeDestination
    ) {
        if (!array_key_exists($property->getName(), $structureArray) || !$structureArray[$property->getName()]) {
            return;
        }

        $targetDocumentDestination = $this->getTargetDocumentDestination(
            $structureArray[$property->getName()],
            $localeSource,
            $localeDestination
        );

        if (!$targetDocumentDestination) {
            return;
        }

        $structureArray[$property->getName()] = $targetDocumentDestination->getUuid();
    }
protected function updateSinglePageSelection ( array & $ structureArray , PropertyMetadata $ property , $ localeSource , $ localeDestination ) { if ( ! array_key_exists ( $ property -> getName ( ) , $ structureArray ) || ! $ structureArray [ $ property -> getName ( ) ] ) { return ; } $ targetDocumentDestination = $ this -> getTargetDocumentDestination ( $ structureArray [ $ property -> getName ( ) ] , $ localeSource , $ localeDestination ) ; if ( ! $ targetDocumentDestination ) { return ; } $ structureArray [ $ property -> getName ( ) ] = $ targetDocumentDestination -> getUuid ( ) ; }
Updates references in structure for content type `single_page_selection`.

@param array $structureArray
@param PropertyMetadata $property
@param string $localeSource
@param string $localeDestination
Updates references in structure for content type single_page_selection .