Ojs\AdminBundle\Controller\AdminFileController::createCreateForm PHP Method

createCreateForm() private method

Creates a form to create a AdminFileentity.
private createCreateForm ( AdminFile $entity ) : Form
$entity Ojs\AdminBundle\Entity\AdminFile The entity
return Symfony\Component\Form\Form The form
    private function createCreateForm(AdminFile $entity)
    {
        $form = $this->createForm(new AdminFileType(), $entity, array('action' => $this->generateUrl('ojs_admin_file_create'), 'method' => 'POST'));
        $form->add('submit', 'submit', array('label' => 'Create'));
        return $form;
    }