src/Sulu/Component/Content/Export/WebspaceExport.php
protected function getExtensionData(BasePageDocument $document)
    {
        $extensionData = [];

        foreach ($document->getExtensionsData()->toArray() as $extensionName => $extensionProperties) {
            /** @var \Sulu\Bundle\PageBundle\Content\Structure\ExcerptStructureExtension $extension */
            $extension = $this->extensionManager->getExtension($document->getStructureType(), $extensionName);

            if ($extension instanceof ExportExtensionInterface) {
                $extensionData[$extensionName] = $extension->export($extensionProperties, $this->format);
            }
        }

        return $extensionData;
    }
protected function getExtensionData(BasePageDocument $document)
    {
        $extensionData = [];

        foreach ($document->getExtensionsData()->toArray() as $extensionName => $extensionProperties) {
            /** @var \Sulu\Bundle\PageBundle\Content\Structure\ExcerptStructureExtension $extension */
            $extension = $this->extensionManager->getExtension($document->getStructureType(), $extensionName);

            if ($extension instanceof ExportExtensionInterface) {
                $extensionData[$extensionName] = $extension->export($extensionProperties, $this->format);
            }
        }

        return $extensionData;
    }
protected function getExtensionData ( BasePageDocument $ document ) { $ extensionData = [ ] ; foreach ( $ document -> getExtensionsData ( ) -> toArray ( ) as $ extensionName => $ extensionProperties ) { /** @var \Sulu\Bundle\PageBundle\Content\Structure\ExcerptStructureExtension $extension */ $ extension = $ this -> extensionManager -> getExtension ( $ document -> getStructureType ( ) , $ extensionName ) ; if ( $ extension instanceof ExportExtensionInterface ) { $ extensionData [ $ extensionName ] = $ extension -> export ( $ extensionProperties , $ this -> format ) ; } } return $ extensionData ; }
Returns a flat array with the extensions of the given document.

@param BasePageDocument $document

@return array
Returns a flat array with the extensions of the given document .