Ojs\AdminBundle\Controller\AdminPublisherThemeController::editAction PHP Method

editAction() public method

Displays a form to edit an existing PublisherTheme entity.
public editAction ( $id ) : Response
$id
return Symfony\Component\HttpFoundation\Response
    public function editAction($id)
    {
        $em = $this->getDoctrine()->getManager();
        /** @var PublisherTheme $entity */
        $entity = $em->getRepository('OjsJournalBundle:PublisherTheme')->find($id);
        $this->throw404IfNotFound($entity);
        $editForm = $this->createEditForm($entity);
        return $this->render('OjsAdminBundle:AdminPublisherTheme:edit.html.twig', array('entity' => $entity, 'edit_form' => $editForm->createView()));
    }