public function buildRow(Model\RowInterface $row)
    {
        $view = new RowView();
        $attributes = $view->getAttributes()->addClass('cms-row');

        if ($this->editor->isEnabled()) {
            $container = $row->getContainer();

            $attributes
                ->setId('cms-row-' . $row->getId())
                ->setData([
                    'id'       => $row->getId(),
                    'position' => $row->getPosition(),
                    'actions'  => [
                        'add'       => !is_null($container),
                        //'edit'         => true,
                        'layout'    => true,
                        //'change_type'  => !$row->isNamed(),
                        'move_up'   => !$row->isFirst(),
                        'move_down' => !$row->isLast(),
                        'remove'    => !$row->isAlone(),
                    ],
                ]);
        }

        // Layout
        $this->editor->getLayoutAdapter()->buildRow($row, $view);

        foreach ($row->getBlocks() as $block) {
            $view->blocks[] = $this->buildBlock($block);
        }

        return $view;
    }