Ojs\SiteBundle\Controller\SiteController::publisherPageAction PHP Метод

publisherPageAction() публичный Метод

public publisherPageAction ( $slug )
    public function publisherPageAction($slug)
    {
        $data['page'] = 'organizations';
        $journalService = $this->get('ojs.journal_service');
        $em = $this->getDoctrine()->getManager();
        $entity = $em->getRepository('OjsJournalBundle:Publisher')->findOneBy(['slug' => $slug, 'status' => PublisherStatuses::STATUS_COMPLETE]);
        $this->throw404IfNotFound($entity);
        $data['entity'] = $entity;
        /** @var Journal $journal */
        foreach ($entity->getJournals() as $journal) {
            $journal->setPublicURI($journalService->generateUrl($journal));
        }
        return $this->render('OjsSiteBundle::Publisher/publisher_index.html.twig', $data);
    }