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

showAction() public method

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