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

editAction() public method

Displays a form to edit an existing Post entity.
public editAction ( AdminPost $entity ) : Response
$entity Ojs\AdminBundle\Entity\AdminPost
return Symfony\Component\HttpFoundation\Response
    public function editAction(AdminPost $entity)
    {
        $this->throw404IfNotFound($entity);
        $token = $this->get('security.csrf.token_manager')->refreshToken('ojs_admin_post' . $entity->getId());
        $editForm = $this->createEditForm($entity);
        return $this->render('OjsAdminBundle:AdminPost:edit.html.twig', ['token' => $token, 'entity' => $entity, 'edit_form' => $editForm->createView()]);
    }