Ojs\AdminBundle\Controller\AdminPageController::showAction PHP Method

showAction() public method

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