Controller/EpisodeController.php
private function createCreateForm(Episode $entity)
    {
        $form = $this->createForm(EpisodeType::class, $entity, array(
            'action' => $this->generateUrl('oktolab_episode_create'),
            'method' => 'POST',
        ));

        $form->add(
            'submit',
            SubmitType::class,
            [
                'label' => 'oktolab_media.new_episode_create_button',
                'attr' => ['class' => 'btn btn-primary']
            ]
        );

        return $form;
    }
private function createCreateForm(Episode $entity)
    {
        $form = $this->createForm(EpisodeType::class, $entity, array(
            'action' => $this->generateUrl('oktolab_episode_create'),
            'method' => 'POST',
        ));

        $form->add(
            'submit',
            SubmitType::class,
            [
                'label' => 'oktolab_media.new_episode_create_button',
                'attr' => ['class' => 'btn btn-primary']
            ]
        );

        return $form;
    }
private function createCreateForm ( Episode $ entity ) { $ form = $ this -> createForm ( EpisodeType :: class , $ entity , array ( 'action' => $ this -> generateUrl ( 'oktolab_episode_create' ) , 'method' => 'POST' , ) ) ; $ form -> add ( 'submit' , SubmitType :: class , [ 'label' => 'oktolab_media.new_episode_create_button' , 'attr' => [ 'class' => 'btn btn-primary' ] ] ) ; return $ form ; }
Creates a form to create a Episode entity.

@param Episode $entity The entity

@return \Symfony\Component\Form\Form The form
Creates a form to create a Episode entity .