protected function newAction(Request $request, $isHomepage = false)
    {
        $page = $this->getNewPage();
        if ($page instanceof Page) {
            $page->setHomepage($isHomepage ? $isHomepage : 0);
        }

        $form = $this->get('form.factory')->create($this->getNewPageType(), $page);

        return [
            'success' => true,
            'html'    => $this->get('templating')->render(
                $this->getBaseTemplatePath().':new.html.twig',
                ['form' => $form->createView()]
            ),
        ];
    }