EventListener/ContentProxyListener.php
private function getProxies($contentData, StructureInterface $structure)
    {
        $contentData = $contentData ?: '{}';
        $data = json_decode($contentData, true);

        $content = $this->contentProxyFactory->createContentProxy($structure, $data);
        $view = $this->contentProxyFactory->createViewProxy($structure, $data);

        return [$content, $view];
    }
private function getProxies($contentData, StructureInterface $structure)
    {
        $contentData = $contentData ?: '{}';
        $data = json_decode($contentData, true);

        $content = $this->contentProxyFactory->createContentProxy($structure, $data);
        $view = $this->contentProxyFactory->createViewProxy($structure, $data);

        return [$content, $view];
    }
private function getProxies ( $ contentData , StructureInterface $ structure ) { $ contentData = $ contentData ? : '{}' ; $ data = json_decode ( $ contentData , true ) ; $ content = $ this -> contentProxyFactory -> createContentProxy ( $ structure , $ data ) ; $ view = $ this -> contentProxyFactory -> createViewProxy ( $ structure , $ data ) ; return [ $ content , $ view ] ; }
Create content and view proxy for given content-data.

@param string $contentData
@param StructureInterface $structure

@return array
Create content and view proxy for given content - data .