src/Sulu/Component/Export/Export.php
protected function getPropertiesContentData($properties, $propertyValues)
    {
        $contentData = [];

        foreach ($properties as $property) {
            if ($this->exportManager->hasExport($property->getType(), $this->format)) {
                if (!isset($propertyValues[$property->getName()])) {
                    continue;
                }

                $propertyValue = $propertyValues[$property->getName()];

                if ($property instanceof BlockMetadata) {
                    $data = $this->getBlockPropertyData($property, $propertyValue);
                } else {
                    $data = $this->getPropertyData($property, $propertyValue);
                }

                $contentData[$property->getName()] = $data;
            }
        }

        return $contentData;
    }
protected function getPropertiesContentData($properties, $propertyValues)
    {
        $contentData = [];

        foreach ($properties as $property) {
            if ($this->exportManager->hasExport($property->getType(), $this->format)) {
                if (!isset($propertyValues[$property->getName()])) {
                    continue;
                }

                $propertyValue = $propertyValues[$property->getName()];

                if ($property instanceof BlockMetadata) {
                    $data = $this->getBlockPropertyData($property, $propertyValue);
                } else {
                    $data = $this->getPropertyData($property, $propertyValue);
                }

                $contentData[$property->getName()] = $data;
            }
        }

        return $contentData;
    }
protected function getPropertiesContentData ( $ properties , $ propertyValues ) { $ contentData = [ ] ; foreach ( $ properties as $ property ) { if ( $ this -> exportManager -> hasExport ( $ property -> getType ( ) , $ this -> format ) ) { if ( ! isset ( $ propertyValues [ $ property -> getName ( ) ] ) ) { continue ; } $ propertyValue = $ propertyValues [ $ property -> getName ( ) ] ; if ( $ property instanceof BlockMetadata ) { $ data = $ this -> getBlockPropertyData ( $ property , $ propertyValue ) ; } else { $ data = $ this -> getPropertyData ( $ property , $ propertyValue ) ; } $ contentData [ $ property -> getName ( ) ] = $ data ; } } return $ contentData ; }
Returns the Content as a flat array.

@param PropertyMetadata[] $properties
@param $propertyValues

@return array
Returns the Content as a flat array .