Document/Structure/ContentProxyFactory.php
private function resolveView(StructureInterface $structure, array $data)
    {
        $structure->setWebspaceKey($this->getWebspaceKey());

        $view = [];
        foreach ($structure->getProperties(true) as $child) {
            if (array_key_exists($child->getName(), $data)) {
                $child->setValue($data[$child->getName()]);
            }

            $contentType = $this->contentTypeManager->get($child->getContentTypeName());
            $view[$child->getName()] = $contentType->getViewData($child);
        }

        return $view;
    }
private function resolveView(StructureInterface $structure, array $data)
    {
        $structure->setWebspaceKey($this->getWebspaceKey());

        $view = [];
        foreach ($structure->getProperties(true) as $child) {
            if (array_key_exists($child->getName(), $data)) {
                $child->setValue($data[$child->getName()]);
            }

            $contentType = $this->contentTypeManager->get($child->getContentTypeName());
            $view[$child->getName()] = $contentType->getViewData($child);
        }

        return $view;
    }
private function resolveView ( StructureInterface $ structure , array $ data ) { $ structure -> setWebspaceKey ( $ this -> getWebspaceKey ( ) ) ; $ view = [ ] ; foreach ( $ structure -> getProperties ( true ) as $ child ) { if ( array_key_exists ( $ child -> getName ( ) , $ data ) ) { $ child -> setValue ( $ data [ $ child -> getName ( ) ] ) ; } $ contentType = $ this -> contentTypeManager -> get ( $ child -> getContentTypeName ( ) ) ; $ view [ $ child -> getName ( ) ] = $ contentType -> getViewData ( $ child ) ; } return $ view ; }
Resolve view from given data with the structure.

@param StructureInterface $structure
@param array $data

@return array
Resolve view from given data with the structure .