getId() public method

Get id
public getId ( ) : integer
return integer
 /**
  * Finds and displays a PublisherTheme entity.
  *
  * @param  integer $publisherId
  * @param  PublisherTheme $entity
  * @return Response
  */
 public function showAction($publisherId, PublisherTheme $entity)
 {
     $em = $this->getDoctrine()->getManager();
     $publisher = $em->getRepository('OjsJournalBundle:Publisher')->find($publisherId);
     $this->throw404IfNotFound($publisher);
     if (!$this->isGrantedForPublisher($publisher)) {
         throw new AccessDeniedException("You are not authorized for this page!");
     }
     $token = $this->get('security.csrf.token_manager')->refreshToken('ojs_admin_publisher_theme' . $entity->getId());
     return $this->render('OjsJournalBundle:ManagerPublisherTheme:show.html.twig', ['entity' => $entity, 'publisher' => $publisher, 'token' => $token]);
 }