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

editAction() public method

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