Ojs\JournalBundle\Controller\ManagerPublisherThemeController::editAction PHP Метод

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

Displays a form to edit an existing PublisherTheme entity.
public editAction ( integer $publisherId, PublisherTheme $entity ) : Response
$publisherId integer
$entity Ojs\JournalBundle\Entity\PublisherTheme
Результат Symfony\Component\HttpFoundation\Response
    public function editAction($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!");
        }
        $editForm = $this->createEditForm($entity, $publisher);
        return $this->render('OjsJournalBundle:ManagerPublisherTheme:edit.html.twig', array('entity' => $entity, 'publisher' => $publisher, 'edit_form' => $editForm->createView()));
    }