src/Sulu/Component/Export/Export.php
protected function getContentData($document, $locale)
    {
        /** @var BasePageDocument $loadedDocument */
        $loadedDocument = $this->documentManager->find($document->getUuid(), $locale);

        /** @var \Sulu\Component\Content\Metadata\StructureMetadata $metaData */
        $metaData = $this->documentInspector->getStructureMetadata($document);

        $propertyValues = $loadedDocument->getStructure()->toArray();
        $properties = $metaData->getProperties();

        $contentData = $this->getPropertiesContentData($properties, $propertyValues);

        return $contentData;
    }
protected function getContentData($document, $locale)
    {
        /** @var BasePageDocument $loadedDocument */
        $loadedDocument = $this->documentManager->find($document->getUuid(), $locale);

        /** @var \Sulu\Component\Content\Metadata\StructureMetadata $metaData */
        $metaData = $this->documentInspector->getStructureMetadata($document);

        $propertyValues = $loadedDocument->getStructure()->toArray();
        $properties = $metaData->getProperties();

        $contentData = $this->getPropertiesContentData($properties, $propertyValues);

        return $contentData;
    }
protected function getContentData ( $ document , $ locale ) { /** @var BasePageDocument $loadedDocument */ $ loadedDocument = $ this -> documentManager -> find ( $ document -> getUuid ( ) , $ locale ) ; /** @var \Sulu\Component\Content\Metadata\StructureMetadata $metaData */ $ metaData = $ this -> documentInspector -> getStructureMetadata ( $ document ) ; $ propertyValues = $ loadedDocument -> getStructure ( ) -> toArray ( ) ; $ properties = $ metaData -> getProperties ( ) ; $ contentData = $ this -> getPropertiesContentData ( $ properties , $ propertyValues ) ; return $ contentData ; }
Returns a array of the given content data of the document.

@param $document
@param $locale

@return array

@throws DocumentManagerException
Returns a array of the given content data of the document .