/**
  * @param Page $page
  *
  * @return \Symfony\Component\Form\Form
  */
 protected function createEditForm(Page $page)
 {
     $channel = $page->getChannel();
     $form = $this->createForm('integrated_page_page', $page, ['action' => $this->generateUrl('integrated_page_page_edit', ['id' => $page->getId(), 'channel' => $channel->getId()]), 'method' => 'PUT', 'theme' => $this->getTheme($channel)]);
     $form->add('submit', 'submit', ['label' => 'Save']);
     return $form;
 }
 /**
  * @param Page $page
  * @return \Symfony\Component\HttpFoundation\Response
  */
 public function showAction(Page $page)
 {
     return $this->render($page->getLayout(), ['page' => $page, 'edit' => false]);
 }