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

        foreach ($structureArray[$property->getName()] as $key => $value) {
            $targetDocumentDestination = $this->getTargetDocumentDestination(
                $value,
                $localeSource,
                $localeDestination
            );

            if (!$targetDocumentDestination) {
                continue;
            }

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

        foreach ($structureArray[$property->getName()] as $key => $value) {
            $targetDocumentDestination = $this->getTargetDocumentDestination(
                $value,
                $localeSource,
                $localeDestination
            );

            if (!$targetDocumentDestination) {
                continue;
            }

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

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