Ojs\JournalBundle\Controller\JournalUserController::createCreateForm PHP 메소드

createCreateForm() 개인적인 메소드

Creates a form to create a User entity.
private createCreateForm ( User $entity, integer $journalId ) : Form
$entity Ojs\UserBundle\Entity\User
$journalId integer
리턴 Symfony\Component\Form\Form The form
    private function createCreateForm(User $entity, $journalId)
    {
        $form = $this->createForm(new JournalNewUserType(), $entity, array('action' => $this->generateUrl('ojs_journal_user_create', ['journalId' => $journalId]), 'method' => 'POST'));
        $form->add('create', 'submit', array('label' => 'c'));
        return $form;
    }