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

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

Creates a form to edit a JournalContact entity.
private createEditForm ( JournalContact $entity, integer $journalId ) : Form
$entity Ojs\JournalBundle\Entity\JournalContact The entity
$journalId integer
Результат Symfony\Component\Form\Form The form
    private function createEditForm(JournalContact $entity, $journalId)
    {
        $form = $this->createForm(new JournalContactType(), $entity, array('action' => $this->generateUrl('ojs_journal_journal_contact_update', array('id' => $entity->getId(), 'journalId' => $journalId)), 'method' => 'PUT'));
        $form->add('submit', 'submit', array('label' => 'Update'));
        return $form;
    }