src/Sulu/Component/Export/Export.php
protected function getBlockPropertyData(BlockMetadata $property, $propertyValue)
    {
        $children = [];

        $blockDataList = $this->exportManager->export($property->getType(), $propertyValue);

        foreach ($blockDataList as $blockData) {
            $blockType = $blockData['type'];

            $block = $this->getPropertiesContentData(
                $property->getComponentByName($blockType)->getChildren(),
                $blockData
            );

            $block['type'] = $this->createProperty(
                'type',
                $blockType,
                $this->exportManager->getOptions($property->getType(), $this->format),
                $property->getType() . '_type'
            );

            $children[] = $block;
        }

        return $this->createProperty(
            $property->getName(),
            null,
            $this->exportManager->getOptions($property->getType(), $this->format),
            $property->getType(),
            $children
        );
    }
protected function getBlockPropertyData(BlockMetadata $property, $propertyValue)
    {
        $children = [];

        $blockDataList = $this->exportManager->export($property->getType(), $propertyValue);

        foreach ($blockDataList as $blockData) {
            $blockType = $blockData['type'];

            $block = $this->getPropertiesContentData(
                $property->getComponentByName($blockType)->getChildren(),
                $blockData
            );

            $block['type'] = $this->createProperty(
                'type',
                $blockType,
                $this->exportManager->getOptions($property->getType(), $this->format),
                $property->getType() . '_type'
            );

            $children[] = $block;
        }

        return $this->createProperty(
            $property->getName(),
            null,
            $this->exportManager->getOptions($property->getType(), $this->format),
            $property->getType(),
            $children
        );
    }
protected function getBlockPropertyData ( BlockMetadata $ property , $ propertyValue ) { $ children = [ ] ; $ blockDataList = $ this -> exportManager -> export ( $ property -> getType ( ) , $ propertyValue ) ; foreach ( $ blockDataList as $ blockData ) { $ blockType = $ blockData [ 'type' ] ; $ block = $ this -> getPropertiesContentData ( $ property -> getComponentByName ( $ blockType ) -> getChildren ( ) , $ blockData ) ; $ block [ 'type' ] = $ this -> createProperty ( 'type' , $ blockType , $ this -> exportManager -> getOptions ( $ property -> getType ( ) , $ this -> format ) , $ property -> getType ( ) . '_type' ) ; $ children [ ] = $ block ; } return $ this -> createProperty ( $ property -> getName ( ) , null , $ this -> exportManager -> getOptions ( $ property -> getType ( ) , $ this -> format ) , $ property -> getType ( ) , $ children ) ; }
Creates and Returns a property-array for content-type Block.

@param BlockMetadata $property
@param PropertyValue $propertyValue

@return array
Creates and Returns a property - array for content - type Block .