original_string: private function createEditForm(Episode $entity)
      {
          $form = $this->createForm(
              new EpisodeType(),
              $entity,
              [
                  'action' => $this->generateUrl(
                      'oktolab_episode_update',
                      ['id' => $entity->getId()]
                  ),
                  'method' => 'POST'
              ]
          );
  
          $form->add(
              'submit',
              'submit',
              ['label' => 'oktolab_media.edit_episode_button']
          );
  
          return $form;
      }
code: private function createEditForm(Episode $entity)
      {
          $form = $this->createForm(
              new EpisodeType(),
              $entity,
              [
                  'action' => $this->generateUrl(
                      'oktolab_episode_update',
                      ['id' => $entity->getId()]
                  ),
                  'method' => 'POST'
              ]
          );
  
          $form->add(
              'submit',
              'submit',
              ['label' => 'oktolab_media.edit_episode_button']
          );
  
          return $form;
      }
code_tokens: private function createEditForm ( Episode $ entity ) { $ form = $ this -> createForm ( new EpisodeType ( ) , $ entity , [ 'action' => $ this -> generateUrl ( 'oktolab_episode_update' , [ 'id' => $ entity -> getId ( ) ] ) , 'method' => 'POST' ] ) ; $ form -> add ( 'submit' , 'submit' , [ 'label' => 'oktolab_media.edit_episode_button' ] ) ; return $ form ; }
docstring: Creates a form to edit a Episode entity.
  
  @param Episode $entity The entity
  
  @return \Symfony\Component\Form\Form The form
docstring_tokens: Creates a form to edit a Episode entity .