/**
  * Displays a form to edit an existing PublisherDesign entity.
  *
  * @param integer $publisherId
  * @param PublisherDesign $entity
  * @return Response
  */
 public function editAction($publisherId, PublisherDesign $entity)
 {
     $em = $this->getDoctrine()->getManager();
     $publisher = $em->getRepository('OjsJournalBundle:Publisher')->find($publisherId);
     $this->throw404IfNotFound($publisher);
     if (!$this->isGrantedForPublisher($publisher)) {
         throw new AccessDeniedException("You are not authorized for this page!");
     }
     $entity->setEditableContent($this->prepareEditContent($entity->getEditableContent()));
     $editForm = $this->createEditForm($entity, $publisher);
     return $this->render('OjsJournalBundle:ManagerPublisherDesign:edit.html.twig', array('entity' => $entity, 'publisher' => $publisher, 'edit_form' => $editForm->createView()));
 }