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

showAction() public method

Finds and displays a Subject entity.
public showAction ( Request $request, Subject $entity ) : Response
$request Symfony\Component\HttpFoundation\Request
$entity Ojs\JournalBundle\Entity\Subject
return Symfony\Component\HttpFoundation\Response
    public function showAction(Request $request, Subject $entity)
    {
        $this->throw404IfNotFound($entity);
        $entity->setDefaultLocale($request->getDefaultLocale());
        $token = $this->get('security.csrf.token_manager')->refreshToken('ojs_admin_subject' . $entity->getId());
        return $this->render('OjsAdminBundle:AdminSubject:show.html.twig', ['entity' => $entity, 'token' => $token]);
    }