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

showAction() public method

Finds and displays a PersonTitle entity.
public showAction ( $id ) : Response
$id
return Symfony\Component\HttpFoundation\Response
    public function showAction($id)
    {
        $em = $this->getDoctrine()->getManager();
        $entity = $em->getRepository('OjsJournalBundle:PersonTitle')->find($id);
        if (!$entity) {
            throw $this->createNotFoundException('Unable to find PersonTitle entity.');
        }
        $token = $this->get('security.csrf.token_manager')->refreshToken('ojs_admin_person_title' . $entity->getId());
        return $this->render('OjsAdminBundle:AdminPersonTitle:show.html.twig', array('entity' => $entity, 'token' => $token));
    }