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

editAction() public method

Displays a form to edit an existing Board entity.
public editAction ( Board $board ) : Response
$board Ojs\JournalBundle\Entity\Board
return Symfony\Component\HttpFoundation\Response
    public function editAction(Board $board)
    {
        $journal = $this->get('ojs.journal_service')->getSelectedJournal();
        if (!$this->isGranted('EDIT', $journal, 'boards')) {
            throw new AccessDeniedException("You not authorized for edit this journal's boards!");
        }
        $editForm = $this->createEditForm($board);
        return $this->render('OjsJournalBundle:Board:edit.html.twig', array('entity' => $board, 'edit_form' => $editForm->createView()));
    }