original_string: private function createCreateForm(MediaType $entity)
      {
          $form = $this->createForm(new MediaTypeType(), $entity, array(
              'action' => $this->generateUrl('mediatype_create'),
              'method' => 'POST',
          ));
  
          $form->add('submit', 'submit', array('label' => 'Create'));
  
          return $form;
      }
code: private function createCreateForm(MediaType $entity)
      {
          $form = $this->createForm(new MediaTypeType(), $entity, array(
              'action' => $this->generateUrl('mediatype_create'),
              'method' => 'POST',
          ));
  
          $form->add('submit', 'submit', array('label' => 'Create'));
  
          return $form;
      }
code_tokens: private function createCreateForm ( MediaType $ entity ) { $ form = $ this -> createForm ( new MediaTypeType ( ) , $ entity , array ( 'action' => $ this -> generateUrl ( 'mediatype_create' ) , 'method' => 'POST' , ) ) ; $ form -> add ( 'submit' , 'submit' , array ( 'label' => 'Create' ) ) ; return $ form ; }
docstring: Creates a form to create a MediaType entity.
  
  @param MediaType $entity The entity
  
  @return \Symfony\Component\Form\Form The form
docstring_tokens: Creates a form to create a MediaType entity .