Ojs\JournalBundle\Controller\DesignController::editAction PHP Method

editAction() public method

public editAction ( Ojs\JournalBundle\Entity\Design $design ) : Response
$design Ojs\JournalBundle\Entity\Design
return Symfony\Component\HttpFoundation\Response
    public function editAction(Design $design)
    {
        $journal = $this->get('ojs.journal_service')->getSelectedJournal();
        if (!$this->isGranted('EDIT', $journal, 'design')) {
            throw new AccessDeniedException("You are not authorized for edit this journal's design!");
        }
        $design->setEditableContent($this->prepareEditContent($design->getEditableContent()));
        $editForm = $this->createEditForm($design, $journal);
        return $this->render('OjsJournalBundle:Design:edit.html.twig', array('journal' => $journal, 'entity' => $design, 'edit_form' => $editForm->createView()));
    }