Ojs\JournalBundle\Controller\DesignController::createEditForm PHP 메소드

createEditForm() 개인적인 메소드

private createEditForm ( Ojs\JournalBundle\Entity\Design $entity, Journal $journal ) : Form
$entity Ojs\JournalBundle\Entity\Design
$journal Ojs\JournalBundle\Entity\Journal
리턴 Symfony\Component\Form\Form
    private function createEditForm(Design $entity, Journal $journal)
    {
        $form = $this->createForm(new DesignType(), $entity, array('action' => $this->generateUrl('ojs_journal_design_update', ['journalId' => $journal->getId(), 'id' => $entity->getId()]), 'method' => 'PUT'));
        $form->add('submit', 'submit', array('label' => 'Update'));
        return $form;
    }