public function buildContent(Model\ContentInterface $content)
    {
        $view = new ContentView();
        $attributes = $view->getAttributes()->addClass('cms-content');

        if ($this->editor->isEnabled()) {
            $attributes
                ->setId('cms-content-' . $content->getId())
                ->setData([
                    'id'      => $content->getId(),
                    'actions' => [
                        // TODO
                    ],
                ]);
        }

        // Layout
        $this->editor->getLayoutAdapter()->buildContent($content, $view);

        foreach ($content->getContainers() as $container) {
            $view->containers[] = $this->buildContainer($container);
        }

        return $view;
    }
public function buildContent(Model\ContentInterface $content)
    {
        $view = new ContentView();
        $attributes = $view->getAttributes()->addClass('cms-content');

        if ($this->editor->isEnabled()) {
            $attributes
                ->setId('cms-content-' . $content->getId())
                ->setData([
                    'id'      => $content->getId(),
                    'actions' => [
                        // TODO
                    ],
                ]);
        }

        // Layout
        $this->editor->getLayoutAdapter()->buildContent($content, $view);

        foreach ($content->getContainers() as $container) {
            $view->containers[] = $this->buildContainer($container);
        }

        return $view;
    }
public function buildContent ( Model \ ContentInterface $ content ) { $ view = new ContentView ( ) ; $ attributes = $ view -> getAttributes ( ) -> addClass ( 'cms-content' ) ; if ( $ this -> editor -> isEnabled ( ) ) { $ attributes -> setId ( 'cms-content-' . $ content -> getId ( ) ) -> setData ( [ 'id' => $ content -> getId ( ) , 'actions' => [ // TODO ] , ] ) ; } // Layout $ this -> editor -> getLayoutAdapter ( ) -> buildContent ( $ content , $ view ) ; foreach ( $ content -> getContainers ( ) as $ container ) { $ view -> containers [ ] = $ this -> buildContainer ( $ container ) ; } return $ view ; }
Builds the content view.

@param Model\ContentInterface $content

@return ContentView
Builds the content view .