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

showAction() public method

Finds and displays a PublisherTheme entity.
public showAction ( $id ) : Response
$id
return Symfony\Component\HttpFoundation\Response
    public function showAction($id)
    {
        $em = $this->getDoctrine()->getManager();
        $entity = $em->getRepository('OjsJournalBundle:PublisherTheme')->find($id);
        $this->throw404IfNotFound($entity);
        $token = $this->get('security.csrf.token_manager')->refreshToken('ojs_admin_publisher_theme' . $entity->getId());
        return $this->render('OjsAdminBundle:AdminPublisherTheme:show.html.twig', ['entity' => $entity, 'token' => $token]);
    }