Ojs\AdminBundle\Controller\AdminContactController::createCreateForm PHP Метод

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

Creates a form to create a JournalContact entity.
private createCreateForm ( JournalContact $entity ) : Form
$entity Ojs\JournalBundle\Entity\JournalContact The entity
Результат Symfony\Component\Form\Form The form
    private function createCreateForm(JournalContact $entity)
    {
        $options = array('action' => $this->generateUrl('ojs_admin_contact_create'), 'method' => 'POST');
        $form = $this->createForm(new ContactType(), $entity, $options);
        $form->add('submit', 'submit', array('label' => 'Create'));
        return $form;
    }