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

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

Displays a form to edit an existing article entity
public editAction ( Article $article ) : Response
$article Ojs\JournalBundle\Entity\Article
Результат Symfony\Component\HttpFoundation\Response
    public function editAction(Article $article)
    {
        $journal = $this->get('ojs.journal_service')->getSelectedJournal();
        if (!$this->isGranted('EDIT', $journal, 'articles')) {
            throw new AccessDeniedException("You not authorized for this page!");
        }
        $editForm = $this->createEditForm($article, $journal)->add('update', 'submit', array('label' => 'u'));
        return $this->render('OjsJournalBundle:Article:edit.html.twig', ['entity' => $article, 'form' => $editForm->createView()]);
    }