original_string: private function createEditForm(UserGroup $entity) {
          $form = $this->createForm(new UserGroupType(), $entity, array(
              'action' => $this->generateUrl('admin_usergroup_update', array('id' => $entity->getId())),
              'method' => 'PUT',
          ));
  
          $form->add('submit', 'submit', array('label' => 'Update'));
  
          return $form;
      }
code: private function createEditForm(UserGroup $entity) {
          $form = $this->createForm(new UserGroupType(), $entity, array(
              'action' => $this->generateUrl('admin_usergroup_update', array('id' => $entity->getId())),
              'method' => 'PUT',
          ));
  
          $form->add('submit', 'submit', array('label' => 'Update'));
  
          return $form;
      }
code_tokens: private function createEditForm ( UserGroup $ entity ) { $ form = $ this -> createForm ( new UserGroupType ( ) , $ entity , array ( 'action' => $ this -> generateUrl ( 'admin_usergroup_update' , array ( 'id' => $ entity -> getId ( ) ) ) , 'method' => 'PUT' , ) ) ; $ form -> add ( 'submit' , 'submit' , array ( 'label' => 'Update' ) ) ; return $ form ; }
docstring: Creates a form to edit a UserGroup entity.
  
  @param UserGroup $entity The entity
  
  @return \Symfony\Component\Form\Form The form
docstring_tokens: Creates a form to edit a UserGroup entity .