Ojs\AdminBundle\Controller\AdminIndexController::showAction PHP 메소드

showAction() 공개 메소드

Finds and displays a Index entity.
public showAction ( Ojs\JournalBundle\Entity\Index $entity ) : Response
$entity Ojs\JournalBundle\Entity\Index
리턴 Symfony\Component\HttpFoundation\Response
    public function showAction(Index $entity)
    {
        $this->throw404IfNotFound($entity);
        $token = $this->get('security.csrf.token_manager')->refreshToken('ojs_admin_index' . $entity->getId());
        return $this->render('OjsAdminBundle:AdminIndex:show.html.twig', ['entity' => $entity, 'token' => $token]);
    }