Ojs\AdminBundle\Controller\AdminLanguageController::createEditForm PHP Method

createEditForm() private method

Creates a form to edit a Lang entity.
private createEditForm ( Lang $entity ) : Form
$entity Ojs\JournalBundle\Entity\Lang The entity
return Symfony\Component\Form\Form The form
    private function createEditForm(Lang $entity)
    {
        $form = $this->createForm(new LangType(), $entity, array('action' => $this->generateUrl('ojs_admin_language_update', array('id' => $entity->getId())), 'method' => 'PUT'));
        $form->add('submit', 'submit', ['label' => 'Update']);
        return $form;
    }