Document/Structure/ContentProxyFactory.php
public function createViewProxy(StructureInterface $structure, array $data)
    {
        return $this->proxyFactory->createProxy(
            \ArrayObject::class,
            function (
                &$wrappedObject,
                LazyLoadingInterface $proxy,
                $method,
                array $parameters,
                &$initializer
            ) use ($structure, $data) {
                $initializer = null;
                $wrappedObject = new \ArrayObject($this->resolveView($structure, $data));

                return true;
            }
        );
    }
public function createViewProxy(StructureInterface $structure, array $data)
    {
        return $this->proxyFactory->createProxy(
            \ArrayObject::class,
            function (
                &$wrappedObject,
                LazyLoadingInterface $proxy,
                $method,
                array $parameters,
                &$initializer
            ) use ($structure, $data) {
                $initializer = null;
                $wrappedObject = new \ArrayObject($this->resolveView($structure, $data));

                return true;
            }
        );
    }
public function createViewProxy ( StructureInterface $ structure , array $ data ) { return $ this -> proxyFactory -> createProxy ( \ ArrayObject :: class , function ( & $ wrappedObject , LazyLoadingInterface $ proxy , $ method , array $ parameters , & $ initializer ) use ( $ structure , $ data ) { $ initializer = null ; $ wrappedObject = new \ ArrayObject ( $ this -> resolveView ( $ structure , $ data ) ) ; return true ; } ) ; }
Create view-proxy for given structure.

@param StructureInterface $structure
@param array $data

@return array
Create view - proxy for given structure .