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

createEditForm() приватный Метод

Creates a form to edit a Article entity.
private createEditForm ( Article $entity, Journal $journal ) : Form
$entity Ojs\JournalBundle\Entity\Article The entity
$journal Ojs\JournalBundle\Entity\Journal
Результат Symfony\Component\Form\Form The form
    private function createEditForm(Article $entity, Journal $journal)
    {
        $action = $this->generateUrl('ojs_journal_article_update', ['id' => $entity->getId(), 'journalId' => $journal->getId()]);
        $form = $this->createForm(new ArticleType(), $entity, ['action' => $action, 'method' => 'PUT', 'journal' => $journal]);
        return $form;
    }