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

createCreateForm() private method

Creates a form to create a Index entity.
private createCreateForm ( Ojs\JournalBundle\Entity\Index $entity ) : Form
$entity Ojs\JournalBundle\Entity\Index The entity
return Symfony\Component\Form\Form The form
    private function createCreateForm(Index $entity)
    {
        $form = $this->createForm(new IndexType(), $entity, array('action' => $this->generateUrl('ojs_admin_index_create'), 'method' => 'POST'));
        return $form;
    }