Document/Serializer/ArticleWebsiteSubscriber.php
private function resolve(ArticleInterface $article)
    {
        $structure = $this->structureManager->getStructure($article->getStructureType(), 'article');
        $structure->setDocument($article);

        $data = $article->getStructure()->toArray();

        return [
            'content' => $this->contentProxyFactory->createContentProxy($structure, $data),
            'view' => $this->contentProxyFactory->createViewProxy($structure, $data),
        ];
    }
private function resolve(ArticleInterface $article)
    {
        $structure = $this->structureManager->getStructure($article->getStructureType(), 'article');
        $structure->setDocument($article);

        $data = $article->getStructure()->toArray();

        return [
            'content' => $this->contentProxyFactory->createContentProxy($structure, $data),
            'view' => $this->contentProxyFactory->createViewProxy($structure, $data),
        ];
    }
private function resolve ( ArticleInterface $ article ) { $ structure = $ this -> structureManager -> getStructure ( $ article -> getStructureType ( ) , 'article' ) ; $ structure -> setDocument ( $ article ) ; $ data = $ article -> getStructure ( ) -> toArray ( ) ; return [ 'content' => $ this -> contentProxyFactory -> createContentProxy ( $ structure , $ data ) , 'view' => $ this -> contentProxyFactory -> createViewProxy ( $ structure , $ data ) , ] ; }
Returns content and view of article.

@param ArticleInterface $article

@return array
Returns content and view of article .